| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final SecretKey |
| Access | Constructor and Description |
|---|---|
| public | KTSKeyWithEncapsulation(SecretKey
the secret key that was arrived at. secretKey, byte[] the encapsulation the key data was carried in. encapsulation)Basic constructor. |
| Modifier and Type | Method and Description |
|---|---|
| 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 encrypted encapsulation of the agreed secret key.Return the encapsulation that carried the key material used in creating the agreed secret key. |
| public byte[] | Returns: the secret key encoding.Implements java. |
| public String | Returns: the secret key format.Implements java. |
| public ZeroizableSecretKey | Returns: the associated MAC key for this KTS key (null if there isn't one).Return the mac key if there is one present. |
| public int |
| encapsulation | back to summary |
|---|---|
| private final byte[] encapsulation | |
| secretKey | back to summary |
|---|---|
| private final SecretKey secretKey | |
| KTSKeyWithEncapsulation | back to summary |
|---|---|
| public KTSKeyWithEncapsulation(SecretKey secretKey, byte[] encapsulation) Basic constructor.
| |
| 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.
| |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() Return the encapsulation that carried the key material used in creating 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 the mac key if there is one present.
| |
| 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
| |