Package | Description |
---|---|
java.security | |
java.security.cert | |
javax.crypto | |
sun.security.x509 |
Modifier and Type | Method and Description |
---|---|
abstract Key |
KeyStoreSpi.engineGetKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
abstract void |
KeyStoreSpi.engineLoad(InputStream stream,
char[] password)
Loads the keystore from the given input stream.
|
static Signature |
Signature.getInstance(String algorithm)
Returns a Signature object that implements the specified signature algorithm.
|
static MessageDigest |
MessageDigest.getInstance(String algorithm)
Returns a MessageDigest object that implements the specified digest algorithm.
|
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm)
Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.
|
static KeyFactory |
KeyFactory.getInstance(String algorithm)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.
|
static Signature |
Signature.getInstance(String algorithm,
String provider)
Returns a Signature object that implements the specified signature algorithm.
|
static MessageDigest |
MessageDigest.getInstance(String algorithm,
String provider)
Returns a MessageDigest object that implements the specified digest algorithm.
|
Key |
KeyStore.getKey(String alias,
char[] password)
Returns the key associated with the given alias, using the given password to recover it.
|
void |
KeyStore.load(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,
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(String algorithm)
Returns a
Mac object that implements the specified MAC algorithm. |
static Cipher |
Cipher.getInstance(String transformation)
Returns a
Cipher object that implements the specified transformation. |
static Mac |
Mac.getInstance(String algorithm,
String provider)
Returns a
Mac object that implements the specified MAC algorithm. |
static Cipher |
Cipher.getInstance(String transformation,
String provider)
Returns a
Cipher object that implements the specified transformation. |
static int |
Cipher.getMaxAllowedKeyLength(String transformation)
Returns the maximum key length for the specified transformation according to the installed JCE jurisdiction
policy files.
|
static AlgorithmParameterSpec |
Cipher.getMaxAllowedParameterSpec(String transformation)
Returns an AlgorithmParameterSpec object which contains the maximum cipher parameter value according to the
jurisdiction policy file.
|
Key |
Cipher.unwrap(byte[] wrappedKey,
String wrappedKeyAlgorithm,
int wrappedKeyType)
Unwrap a previously wrapped key.
|
Modifier and Type | Method and Description |
---|---|
static AlgorithmId |
AlgorithmId.get(String algname)
Returns one of the algorithm IDs most commonly associated with this algorithm name.
|
static AlgorithmId |
AlgorithmId.getAlgorithmId(String algname)
Deprecated.
use the short get form of this method.
|