webfunds.sox
Class AccountId

java.lang.Object
  |
  +--webfunds.sox.Encodable
        |
        +--webfunds.sox.Id
              |
              +--webfunds.sox.AccountId

public class AccountId
extends Id

This class represents an Account identifier, which is the standard way of referring to an account.

See Also:
Serialized Form

Field Summary
static AccountId BEARER
           
 
Fields inherited from class webfunds.sox.Id
id, LEN_MD5, LEN_NAH, LEN_SHA1, MD_MD5, MD_NAH, MD_SHA1
 
Constructor Summary
  AccountId()
           
  AccountId(byte[] data)
          Recover from byte array (not set this byte array).
protected AccountId(Id i)
           
  AccountId(java.io.InputStream is)
           
  AccountId(java.security.PublicKey pk)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
static AccountId example()
          A life-like example for tests.
static AccountId example(int i)
          A life-like example for tests, with Length
 java.lang.String fp()
          fingerprint - a quick function for diags, long enough to avoid collisions, but short enough to print out.
 boolean isBearer()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
          Convert this object to a string.
 
Methods inherited from class webfunds.sox.Id
decode, encode, eq, ex, ex, getByteArray, getBytesFromIdString, getOpenPGPId, hashCode, setByteArray, setOpenPGPId
 
Methods inherited from class webfunds.sox.Encodable
decode, encode, readByteArray, readCertificate, readProperties, readString, writeByteArray, writeCertificate, writeProperties, writeString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BEARER

public static final AccountId BEARER
Constructor Detail

AccountId

public AccountId()

AccountId

protected AccountId(Id i)

AccountId

public AccountId(byte[] data)
          throws SOXPacketException
Recover from byte array (not set this byte array).

AccountId

public AccountId(java.io.InputStream is)
          throws java.io.IOException,
                 SOXPacketException

AccountId

public AccountId(java.security.PublicKey pk)
          throws java.security.InvalidKeyException
Method Detail

isBearer

public boolean isBearer()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Description copied from class: Id
Convert this object to a string. Note that is equivalent to as encode/decode always mangles one to the other.
Overrides:
toString in class Id

fp

public java.lang.String fp()
Description copied from class: Id
fingerprint - a quick function for diags, long enough to avoid collisions, but short enough to print out.
Overrides:
fp in class Id

example

public static AccountId example()
A life-like example for tests.

example

public static AccountId example(int i)
A life-like example for tests, with Length

main

public static void main(java.lang.String[] args)