Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nectar.reda.io.pgp
Class SharedKey  view SharedKey download SharedKey.java

java.lang.Object
  extended bynectar.reda.io.pgp.SharedKey

public class SharedKey
extends java.lang.Object


Field Summary
private  byte id
           
private  byte[] key
           
private  java.util.Random random
           
 
Constructor Summary
SharedKey(java.util.Random rand)
           
 
Method Summary
 void fromBytes(byte[] k)
           
 void generateNew()
           
 byte getId()
           
 byte[] getKey()
           
 byte[] toBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private byte[] key

id

private byte id

random

private java.util.Random random
Constructor Detail

SharedKey

public SharedKey(java.util.Random rand)
Method Detail

generateNew

public void generateNew()

getKey

public byte[] getKey()

getId

public byte getId()

toBytes

public byte[] toBytes()

fromBytes

public void fromBytes(byte[] k)
               throws java.io.IOException