static final class HMAC256Generator.HMACKey extends Object implements SecretKey
Implementation Note: getEncoded() returns a copy of the first 32 bytes because the Mac class requires this behavior for proper operation. The full key data may be longer than 32 bytes.
serialVersionUID| Constructor and Description |
|---|
HMACKey(byte[] data)Key data. |
| Modifier and Type | Method and Description |
|---|---|
String | getAlgorithm() |
byte[] | getEncoded() |
String | getFormat() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedpublic String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Key