webfunds.token
Class AbstractPublicParams
java.lang.Object
|
+--webfunds.sox.Encodable
|
+--webfunds.token.AbstractParams
|
+--webfunds.token.AbstractPublicParams
- public abstract class AbstractPublicParams
- extends AbstractParams
This class represents a Public (verifying) key for a token.
- See Also:
- Serialized Form
|
Constructor Summary |
AbstractPublicParams(byte[] buf)
Construct a token object from a byte array
that was previously returned from the encode()
method of a token object. |
AbstractPublicParams(java.io.InputStream is)
Construct a token object from data in an input stream,
where the data was previously returned from the encode()
method of a token object. |
AbstractPublicParams(int subversion,
int tokenType,
byte[] series,
long expiry,
byte[] item,
byte log)
Create an uninitialised Public Params. |
| Methods inherited from class webfunds.token.AbstractParams |
decode,
encode,
equals,
getExpiry,
getItem,
getLog,
getQty,
getSeries,
getSubVersion,
getType,
getVersion,
toString,
vString |
| Methods inherited from class webfunds.sox.Encodable |
decode,
encode,
main,
readByteArray,
readCertificate,
readProperties,
readString,
writeByteArray,
writeCertificate,
writeProperties,
writeString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
AbstractPublicParams
public AbstractPublicParams(int subversion,
int tokenType,
byte[] series,
long expiry,
byte[] item,
byte log)
- Create an uninitialised Public Params.
- Parameters:
subversion - is the version of the parent coin classtype - of token, being the blinding or coin schemeitem - is the description of which instrument relatesseries - is the short descriptor of which set of tokens this isexpiry - date on which this series will expirelog - the coin size, log base 2 of quantity
AbstractPublicParams
public AbstractPublicParams(byte[] buf)
throws TokenPacketException
- Construct a token object from a byte array
that was previously returned from the encode()
method of a token object.
- Parameters:
token - the previously encoded token
AbstractPublicParams
public AbstractPublicParams(java.io.InputStream is)
throws TokenPacketException
- Construct a token object from data in an input stream,
where the data was previously returned from the encode()
method of a token object.
- Parameters:
is - the input stream from which to read the token data