| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| private String | |
| private byte[] | |
| private SecretKey |
| Access | Constructor and Description |
|---|---|
| public | AgreedKeyWithMacKey(SecretKey
the secret key that was arrived at. secretKey)Basic constructor, no MAC. |
| public | AgreedKeyWithMacKey(SecretKey
the secret key that was arrived at. secretKey, String the MAC algorithm to use. macAlgorithm, byte[] the bytes representing the agreed MAC key. macKey)Constructor containing MAC details |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | Returns: the secret key value.Implements java. |
| public byte[] | Returns: the secret key encoding.Implements java. |
| public String | Returns: the secret key format.Implements java. |
| public ZeroizableSecretKey | Returns: the MAC secret key (null otherwise).Return a key for the MAC associated with the KTS process (if available). |
| private byte[] | |
| public int | |
| public boolean | isDestroyed()
Overrides default javax. Object has been destroyed.
|
| hasBeenDestroyed | back to summary |
|---|---|
| private final AtomicBoolean hasBeenDestroyed | |
| isZeroed | back to summary |
|---|---|
| private final AtomicBoolean isZeroed | |
| macAlgorithm | back to summary |
|---|---|
| private String macAlgorithm | |
| macKey | back to summary |
|---|---|
| private byte[] macKey | |
| secretKey | back to summary |
|---|---|
| private SecretKey secretKey | |
| AgreedKeyWithMacKey | back to summary |
|---|---|
| public AgreedKeyWithMacKey(SecretKey secretKey) Basic constructor, no MAC.
| |
| AgreedKeyWithMacKey | back to summary |
|---|---|
| public AgreedKeyWithMacKey(SecretKey secretKey, String macAlgorithm, byte[] macKey) Constructor containing MAC details | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides default javax. Doc from javax. Destroy this Sensitive information associated with this | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Return the algorithm for the agreed secret key.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Return the encoding of the agreed secret key.
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Return the format for the agreed secret key.
| |
| getMacKey | back to summary |
|---|---|
| public ZeroizableSecretKey getMacKey() Return a key for the MAC associated with the KTS process (if available).
| |
| getMacKeyBytes | back to summary |
|---|---|
| private byte[] getMacKeyBytes() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Doc from javax. Determine if this
| |