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
|
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 java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
BEARER
public static final AccountId BEARER
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
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)