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 class
static final class
static enum
In PKCS #11, each key can be marked with the operations it will be used to perform. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
Deprecated, for removal: This API element is subject to removal in a future version.static final SymmetricKey.Type
static final SymmetricKey.Type
static final SymmetricKey.Type
Fields inherited from interface javax.crypto.SecretKey
serialVersionUID
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
int
int
getType()
void
setNickName
(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:
getAlgorithm
in interfaceKey
-
getEncoded
byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getFormat
String getFormat() -
getNickName
String getNickName() -
setNickName
-