public class PACESecretKeySpec extends SecretKeySpec implements AccessKeySpec
Constructor and Description |
---|
PACESecretKeySpec(byte[] key,
int offset,
int len,
String algorithm,
byte paceKeyReference)
Constructs a secret key from the given byte array, using the first
len
bytes of key , starting at offset inclusive. |
PACESecretKeySpec(byte[] key,
String algorithm,
byte paceKeyReference)
Constructs a secret key from the given byte array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getKey()
Returns the encoded key (key seed) used in key derivation.
|
byte |
getKeyReference()
Returns reference specifying the type of key from BSI TR-03110 (Appendix B).
|
int |
hashCode() |
getAlgorithm, getEncoded, getFormat
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
destroy, isDestroyed
public PACESecretKeySpec(byte[] key, int offset, int len, String algorithm, byte paceKeyReference)
len
bytes of key
, starting at offset
inclusive.key
- the key bytesoffset
- the offset with key
len
- the length of the key within key
algorithm
- the name of the secret-key algorithm to be associated with the given key materialpaceKeyReference
- a reference specifying the type of key from BSI TR-03110 (Appendix B)public PACESecretKeySpec(byte[] key, String algorithm, byte paceKeyReference)
key
- the key bytesalgorithm
- the name of the secret-key algorithm to be associated with the given key materialpaceKeyReference
- a reference specifying the type of key from BSI TR-03110 (Appendix B)public byte getKeyReference()
public int hashCode()
hashCode
in class SecretKeySpec
public boolean equals(Object obj)
equals
in class SecretKeySpec
public byte[] getKey()
getKey
in interface AccessKeySpec
Copyright © 2019. All rights reserved.