public class KeyBlock
extends java.lang.Object
KeyBlock
class allows to generate keyblock data structures used to encapsulate and
encrypt keys that need to be updated on the secure processor.Constructor and Description |
---|
KeyBlock() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createK81TLSConfig(java.lang.String CA,
java.lang.String cert,
java.lang.String pkey)
Generates a TLS config data structure for use by K81.
|
static byte[] |
createKeyBlock(KeyBlockType keyBlockType,
int version,
byte[] bdk,
byte[] blob)
Generates a keyblock data structure
|
public static byte[] createKeyBlock(KeyBlockType keyBlockType, int version, byte[] bdk, byte[] blob) throws java.lang.Exception
keyBlockType
- the KeyBlockType
to generateversion
- the version of the keyblock data structurebdk
- the BDK used to encrypt the keyblock data structureblob
- the key blob to updatejava.lang.IllegalArgumentException
- if parameters are invalidjava.lang.Exception
- for other types of errorspublic static byte[] createK81TLSConfig(java.lang.String CA, java.lang.String cert, java.lang.String pkey) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
CA
- CA certificate in String formatcert
- Certificate in String formatpkey
- private key in String formatjava.lang.NullPointerException
- if parameters are NULLjava.lang.IllegalArgumentException
- if parameters have illegal formatCopyright © 2019 Yello. All rights reserved.