webfunds.token.algorithm
Class AbstractTokenUtil

java.lang.Object
  |
  +--webfunds.token.algorithm.AbstractTokenUtil

public final class AbstractTokenUtil
extends java.lang.Object

Constants for the token library


Field Summary
static byte ABSTRACT_PARAMS_MAJOR_VERSION
           
static byte ABSTRACT_PARAMS_MINOR_VERSION
           
static byte ABSTRACT_TOKEN_MAJOR_VERSION
           
static byte ABSTRACT_TOKEN_MINOR_VERSION
           
static byte PKT_BLINDEDPROTO
           
static byte PKT_LOCALSAVED
           
static byte PKT_PRIVATEPARAMS
           
static byte PKT_PUBLICPARAMS
           
static byte PKT_SIGNEDBLINDED
           
static byte PKT_TOKEN
           
 
Method Summary
static int decodeParams(byte[] data, int start, int len, byte identifier, webfunds.token.algorithm.AbstractParamInterface tok)
           
static int decodeUtil(byte[] data, int start, int len, byte identifier, webfunds.token.algorithm.AbstractTokenInterface tok)
           
static byte[] encodeParams(byte[] pubdata, byte[] privdata, byte[] sigdata, byte identifier, webfunds.token.algorithm.AbstractParamInterface tok)
           
static byte[] encodeUtil(byte[] data, byte identifier, webfunds.token.algorithm.AbstractTokenInterface tok)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PKT_BLINDEDPROTO

public static final byte PKT_BLINDEDPROTO

PKT_LOCALSAVED

public static final byte PKT_LOCALSAVED

PKT_SIGNEDBLINDED

public static final byte PKT_SIGNEDBLINDED

PKT_TOKEN

public static final byte PKT_TOKEN

PKT_PUBLICPARAMS

public static final byte PKT_PUBLICPARAMS

PKT_PRIVATEPARAMS

public static final byte PKT_PRIVATEPARAMS

ABSTRACT_TOKEN_MAJOR_VERSION

public static final byte ABSTRACT_TOKEN_MAJOR_VERSION

ABSTRACT_TOKEN_MINOR_VERSION

public static final byte ABSTRACT_TOKEN_MINOR_VERSION

ABSTRACT_PARAMS_MAJOR_VERSION

public static final byte ABSTRACT_PARAMS_MAJOR_VERSION

ABSTRACT_PARAMS_MINOR_VERSION

public static final byte ABSTRACT_PARAMS_MINOR_VERSION
Method Detail

encodeUtil

public static final byte[] encodeUtil(byte[] data,
                                      byte identifier,
                                      webfunds.token.algorithm.AbstractTokenInterface tok)

decodeUtil

public static final int decodeUtil(byte[] data,
                                   int start,
                                   int len,
                                   byte identifier,
                                   webfunds.token.algorithm.AbstractTokenInterface tok)
                            throws DataFormatException,
                                   UnsupportedVersionException

encodeParams

public static final byte[] encodeParams(byte[] pubdata,
                                        byte[] privdata,
                                        byte[] sigdata,
                                        byte identifier,
                                        webfunds.token.algorithm.AbstractParamInterface tok)

decodeParams

public static final int decodeParams(byte[] data,
                                     int start,
                                     int len,
                                     byte identifier,
                                     webfunds.token.algorithm.AbstractParamInterface tok)
                              throws DataFormatException,
                                     UnsupportedVersionException