net.vattp.data
Class VatIdentity

java.lang.Object
  |
  +--net.vattp.data.VatIdentity

public class VatIdentity
extends Object

Untamed: Useful functions for manipulating the public key pair representing a vat's identity.

Author:
Bill Frantz, Mark S. Miller

Field Summary
(package private) static String WHOEVER
          VatID to use for connecting to unknown vats at a specific IP address
 
Constructor Summary
private VatIdentity()
          prevent instantiation
 
Method Summary
static String calculateVatID(PublicKey key)
          Enabled: Calculate the vatID from a public key.
static KeyPair generateKeyPair(ESecureRandom entropy)
          Enabled: Make a new VatIdentity object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WHOEVER

static final String WHOEVER
VatID to use for connecting to unknown vats at a specific IP address

Constructor Detail

VatIdentity

private VatIdentity()
prevent instantiation

Method Detail

generateKeyPair

public static KeyPair generateKeyPair(ESecureRandom entropy)
Enabled: Make a new VatIdentity object. Constructing this object will create a new keypair which will define a new identity.


calculateVatID

public static String calculateVatID(PublicKey key)
Enabled: Calculate the vatID from a public key. The vatID is the SHA1 hash of the public key expressed as a base 64 integer.

Parameters:
key - is the public key to hash
Returns:
the SHA1 hash of the public key in base 64 representation as a String.


comments?