Package | Description |
---|---|
java.security |
Contains core language classes related to permission management.
|
java.security.cert |
Contains classes for certificate management.
|
javax.crypto |
Modifier and Type | Method and Description |
---|---|
abstract Key |
KeyStoreSpi.engineGetKey(java.lang.String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
abstract void |
KeyStoreSpi.engineLoad(java.io.InputStream stream,
char[] password)
Loads the keystore from the given input stream.
|
static Signature |
Signature.getInstance(java.lang.String algorithm)
Returns a Signature object that implements the specified signature algorithm.
|
static MessageDigest |
MessageDigest.getInstance(java.lang.String algorithm)
Returns a MessageDigest object that implements the specified digest algorithm.
|
static KeyFactory |
KeyFactory.getInstance(java.lang.String algorithm)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.
|
static Signature |
Signature.getInstance(java.lang.String algorithm,
java.lang.String provider)
Returns a Signature object that implements the specified signature algorithm.
|
static MessageDigest |
MessageDigest.getInstance(java.lang.String algorithm,
java.lang.String provider)
Returns a MessageDigest object that implements the specified digest algorithm.
|
Key |
KeyStore.getKey(java.lang.String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
void |
KeyStore.load(java.io.InputStream stream,
char[] password)
Loads this KeyStore from the given input stream.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Certificate.verify(PublicKey key)
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
abstract void |
Certificate.verify(PublicKey key,
java.lang.String sigProvider)
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|
Modifier and Type | Method and Description |
---|---|
static Mac |
Mac.getInstance(java.lang.String algorithm)
Returns a
Mac object that implements the specified MAC algorithm. |
static Cipher |
Cipher.getInstance(java.lang.String transformation)
Returns a
Cipher object that implements the specified transformation. |
static Mac |
Mac.getInstance(java.lang.String algorithm,
java.lang.String provider)
Returns a
Mac object that implements the specified MAC algorithm. |
static Cipher |
Cipher.getInstance(java.lang.String transformation,
java.lang.String provider)
Returns a
Cipher object that implements the specified transformation. |
static int |
Cipher.getMaxAllowedKeyLength(java.lang.String transformation)
Returns the maximum key length for the specified transformation according to the installed JCE jurisdiction
policy files.
|
static AlgorithmParameterSpec |
Cipher.getMaxAllowedParameterSpec(java.lang.String transformation)
Returns an AlgorithmParameterSpec object which contains the maximum cipher parameter value according to the
jurisdiction policy file.
|
Key |
Cipher.unwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType)
Unwrap a previously wrapped key.
|