Package org.mozilla.jss.crypto
Interface SymmetricKey
- All Superinterfaces:
Destroyable,Key,SecretKey,Serializable
- All Known Implementing Classes:
PK11SymKey
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final classstatic enumIn PKCS #11, each key can be marked with the operations it will be used to perform. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.TypeDeprecated, for removal: This API element is subject to removal in a future version.static final SymmetricKey.Typestatic final SymmetricKey.Typestatic final SymmetricKey.TypeFields inherited from interface javax.crypto.SecretKey
serialVersionUID -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]intintgetType()voidsetNickName(String nickName) Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Field Details
-
GENERIC_SECRET
-
DES
-
DES3
-
RC4
-
RC2
-
SHA1_HMAC
Deprecated, for removal: This API element is subject to removal in a future version. -
SHA256_HMAC
-
SHA384_HMAC
-
SHA512_HMAC
-
AES
-
-
Method Details
-
getType
SymmetricKey.Type getType() -
getOwningToken
CryptoToken getOwningToken() -
getStrength
int getStrength() -
getLength
int getLength() -
getKeyData
-
getAlgorithm
String getAlgorithm()- Specified by:
getAlgorithmin interfaceKey
-
getEncoded
byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getFormat
String getFormat() -
getNickName
String getNickName() -
setNickName
-