public class SecureKeyBlockBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
SIZE_HEADER |
protected static int |
SIZE_HEADER_3DES |
protected static int |
SIZE_HEADER_AES |
protected static int |
SIZE_KEY_VERSION |
protected static int |
SIZE_KEYBLOCK_LENGTH |
protected static int |
SIZE_KEYBLOCK_VERSION |
protected static int |
SIZE_KEYUSAGE |
protected static int |
SIZE_NUMOFOPTHDR |
protected static int |
SIZE_OPTHDR_ID |
protected static int |
SIZE_OPTHDR_LENGTH |
protected static int |
SIZE_RESERVED |
Modifier and Type | Method and Description |
---|---|
SecureKeyBlock |
build(java.lang.CharSequence data) |
protected static int |
calcOptionalHeaderLength(java.util.Map<java.lang.String,java.lang.String> optHdrs) |
protected int |
getMACLength(SecureKeyBlock skb) |
static SecureKeyBlockBuilder |
newBuilder() |
protected static java.util.Map<java.lang.String,java.lang.String> |
parseOptionalHeader(java.io.StringReader sr,
int numOfBlocks) |
protected static char |
readChar(java.io.StringReader sr) |
protected static java.lang.String |
readString(java.io.StringReader sr,
int len) |
java.lang.String |
toKeyBlock(SecureKeyBlock skb) |
SecureKeyBlockBuilder |
with8characterMACVersions(java.lang.String versions)
Configure key block versions with 8 digits key block MAC.
|
protected static final int SIZE_KEYBLOCK_VERSION
protected static final int SIZE_KEYBLOCK_LENGTH
protected static final int SIZE_KEYUSAGE
protected static final int SIZE_KEY_VERSION
protected static final int SIZE_NUMOFOPTHDR
protected static final int SIZE_RESERVED
protected static final int SIZE_HEADER
protected static final int SIZE_OPTHDR_ID
protected static final int SIZE_OPTHDR_LENGTH
protected static final int SIZE_HEADER_3DES
protected static final int SIZE_HEADER_AES
public static SecureKeyBlockBuilder newBuilder()
public SecureKeyBlockBuilder with8characterMACVersions(java.lang.String versions)
Default 8 digits (4 bytes) key block MAC versions are:
versions
- the string with versions charactersprotected int getMACLength(SecureKeyBlock skb)
protected static java.lang.String readString(java.io.StringReader sr, int len)
protected static char readChar(java.io.StringReader sr)
protected static java.util.Map<java.lang.String,java.lang.String> parseOptionalHeader(java.io.StringReader sr, int numOfBlocks)
protected static int calcOptionalHeaderLength(java.util.Map<java.lang.String,java.lang.String> optHdrs)
public SecureKeyBlock build(java.lang.CharSequence data) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String toKeyBlock(SecureKeyBlock skb)