| Package | Description |
|---|---|
| java.security |
Contains core language classes related to permission management.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
| javax.crypto | |
| sun.security.x509 |
Contains classes for certificate management.
|
| 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 KeyFactory |
KeyFactory.getInstance(java.lang.String algorithm)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.
|
static MessageDigest |
MessageDigest.getInstance(java.lang.String algorithm)
Returns a MessageDigest object that implements the specified digest algorithm.
|
static KeyPairGenerator |
KeyPairGenerator.getInstance(java.lang.String algorithm)
Returns a KeyPairGenerator object that generates public/private key pairs for 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 |
|---|---|
static CertPathValidator |
CertPathValidator.getInstance(java.lang.String algorithm)
Returns a
CertPathValidator object that implements the
specified algorithm. |
static CertPathBuilder |
CertPathBuilder.getInstance(java.lang.String algorithm)
Returns a
CertPathBuilder object that implements the
specified algorithm. |
static CertStore |
CertStore.getInstance(java.lang.String type,
CertStoreParameters params)
Returns a
CertStore object that implements the specified
CertStore type and is initialized with the specified
parameters. |
abstract void |
X509CRL.verify(PublicKey key)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
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 |
|---|---|
protected abstract SecretKey |
KeyAgreementSpi.engineGenerateSecret(java.lang.String algorithm)
Creates the shared secret and returns it as a secret key object
of the requested algorithm type.
|
SecretKey |
KeyAgreement.generateSecret(java.lang.String algorithm)
Creates the shared secret and returns it as a
SecretKey
object of the specified algorithm. |
static SecretKeyFactory |
SecretKeyFactory.getInstance(java.lang.String algorithm)
Returns a
SecretKeyFactory object that converts secret keys of the specified 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)
Returns a
Mac object that implements the specified MAC algorithm. |
static KeyAgreement |
KeyAgreement.getInstance(java.lang.String algorithm)
Returns a
KeyAgreement object that implements the
specified key agreement algorithm. |
static Cipher |
Cipher.getInstance(java.lang.String transformation,
java.lang.String provider)
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 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.
|
| Modifier and Type | Method and Description |
|---|---|
static AlgorithmId |
AlgorithmId.get(java.lang.String algname)
Returns one of the algorithm IDs most commonly associated with this algorithm name.
|
static AlgorithmId |
AlgorithmId.getAlgorithmId(java.lang.String algname)
Deprecated.
use the short get form of this method.
|