webfunds.token.algorithm
Class AbstractProtoToken

java.lang.Object
  |
  +--webfunds.token.algorithm.AbstractProtoToken
Direct Known Subclasses:
ChaumProtoToken, RandomProtoToken

public abstract class AbstractProtoToken
extends java.lang.Object
implements webfunds.token.algorithm.AbstractTokenInterface

Class description


Constructor Summary
AbstractProtoToken()
           
 
Method Summary
 byte[] encodeBlindedProtoToken()
           
protected abstract  byte[] encodeBlindedProtoTokenImpl()
           
 byte[] encodeLocallySavedData()
           
protected abstract  byte[] encodeLocallySavedDataImpl()
           
 void generate(java.security.SecureRandom sr, long value, AbstractPublicTokenParameters pubparams)
           
protected abstract  void generateImpl(java.security.SecureRandom sr, long value, AbstractPublicTokenParameters pubparams)
           
 byte getAbstractMajorVersion()
           
 byte getAbstractMinorVersion()
           
 byte[] getClientResponse(byte[] challenge, java.security.SecureRandom sr, AbstractPrivateTokenParameters privparams)
           
 byte[] getCurrencyID()
           
abstract  byte getImplementationMajorVersion()
           
abstract  byte getImplementationMinorVersion()
           
 byte[] getSeries()
           
 long getValue()
           
 void setAbstractMajorVersion(byte x)
           
 void setAbstractMinorVersion(byte x)
           
 void setCurrencyID(byte[] x)
           
 void setImplementationMajorVersion(byte x)
           
 void setImplementationMinorVersion(byte x)
           
 void setSeries(byte[] x)
           
 void setValue(long x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProtoToken

public AbstractProtoToken()
Method Detail

generateImpl

protected abstract void generateImpl(java.security.SecureRandom sr,
                                     long value,
                                     AbstractPublicTokenParameters pubparams)

generate

public final void generate(java.security.SecureRandom sr,
                           long value,
                           AbstractPublicTokenParameters pubparams)

encodeBlindedProtoTokenImpl

protected abstract byte[] encodeBlindedProtoTokenImpl()

encodeBlindedProtoToken

public final byte[] encodeBlindedProtoToken()

encodeLocallySavedDataImpl

protected abstract byte[] encodeLocallySavedDataImpl()

encodeLocallySavedData

public final byte[] encodeLocallySavedData()

getClientResponse

public byte[] getClientResponse(byte[] challenge,
                                java.security.SecureRandom sr,
                                AbstractPrivateTokenParameters privparams)

getAbstractMajorVersion

public final byte getAbstractMajorVersion()
Specified by:
getAbstractMajorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

getAbstractMinorVersion

public final byte getAbstractMinorVersion()
Specified by:
getAbstractMinorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

getImplementationMajorVersion

public abstract byte getImplementationMajorVersion()
Specified by:
getImplementationMajorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

getImplementationMinorVersion

public abstract byte getImplementationMinorVersion()
Specified by:
getImplementationMinorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

getCurrencyID

public final byte[] getCurrencyID()
Specified by:
getCurrencyID in interface webfunds.token.algorithm.AbstractTokenInterface

getSeries

public final byte[] getSeries()
Specified by:
getSeries in interface webfunds.token.algorithm.AbstractTokenInterface

getValue

public final long getValue()
Specified by:
getValue in interface webfunds.token.algorithm.AbstractTokenInterface

setAbstractMajorVersion

public final void setAbstractMajorVersion(byte x)
Specified by:
setAbstractMajorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

setAbstractMinorVersion

public final void setAbstractMinorVersion(byte x)
Specified by:
setAbstractMinorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

setImplementationMajorVersion

public final void setImplementationMajorVersion(byte x)
Specified by:
setImplementationMajorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

setImplementationMinorVersion

public final void setImplementationMinorVersion(byte x)
Specified by:
setImplementationMinorVersion in interface webfunds.token.algorithm.AbstractTokenInterface

setCurrencyID

public final void setCurrencyID(byte[] x)
Specified by:
setCurrencyID in interface webfunds.token.algorithm.AbstractTokenInterface

setSeries

public final void setSeries(byte[] x)
Specified by:
setSeries in interface webfunds.token.algorithm.AbstractTokenInterface

setValue

public final void setValue(long x)
Specified by:
setValue in interface webfunds.token.algorithm.AbstractTokenInterface