Note
it the module is run under the SecurityManager only invokers with CryptoServicesPermission.FIPS_MODE_EXPORT_SECRET_KEY permission can successfully call the getKeyBytes() method.
| Modifier and Type | Field and Description |
|---|---|
| private Algorithm | |
| private final boolean | |
| private byte[] | |
| private final AtomicBoolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | SymmetricSecretKey(Algorithm
the algorithm this secret key is associated with. algorithm, byte[] the bytes representing the key's value. bytes)Base constructor. |
| public | SymmetricSecretKey(Parameters
the parameter set with the algorithm this secret key is associated with. parameterSet, byte[] the bytes representing the key's value. bytes)Base constructor for a specific algorithm associated with a parameter set. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| pack-priv final void | |
| private void | |
| public void | |
| public boolean | equals(Object
object to compare to. o)Overrides java. Implements org. |
| public Algorithm | Returns: the secret keys algorithm.Implements org. |
| public byte[] | Returns: the bytes making up this key.Implements org. |
| public int | hashCode()
Overrides java. Implements org. |
| public boolean | isDestroyed()
Overrides default javax. Object has been destroyed.
|
| private void |
| algorithm | back to summary |
|---|---|
| private Algorithm algorithm | |
| approvedModeOnly | back to summary |
|---|---|
| private final boolean approvedModeOnly | |
| bytes | back to summary |
|---|---|
| private byte[] bytes | |
| hasBeenDestroyed | back to summary |
|---|---|
| private final AtomicBoolean hasBeenDestroyed | |
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| SymmetricSecretKey | back to summary |
|---|---|
| public SymmetricSecretKey(Algorithm algorithm, byte[] bytes) Base constructor.
| |
| SymmetricSecretKey | back to summary |
|---|---|
| public SymmetricSecretKey(Parameters parameterSet, byte[] bytes) Base constructor for a specific algorithm associated with a parameter set.
| |
| calculateHashCode | back to summary |
|---|---|
| private int calculateHashCode() | |
| checkApprovedOnlyModeStatus | back to summary |
|---|---|
| pack-priv final void checkApprovedOnlyModeStatus() | |
| checkDestroyed | back to summary |
|---|---|
| private void checkDestroyed() | |
| destroy | back to summary |
|---|---|
| public void destroy() throws DestroyFailedException Overrides default javax. Doc from javax. Destroy this Sensitive information associated with this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements org. Doc from org. Return true if o is an equivalent key to this. | |
| getAlgorithm | back to summary |
|---|---|
| public Algorithm getAlgorithm() Implements org. Return the algorithm this secret key is for.
| |
| getKeyBytes | back to summary |
|---|---|
| public byte[] getKeyBytes() Implements org. Return the bytes representing this keys value. See CryptoServicesPermission.FIPS_MODE_EXPORT_SECRET_KEY for the permission associated with this method.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Return the hashCode for the key.
| |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Doc from javax. Determine if this
| |
| zeroize | back to summary |
|---|---|
| private void zeroize() | |