Uses of Class
java.security.NoSuchAlgorithmException
Package
Description
This package comprises the interfaces and classes used to define the
signing mechanism used by the
jarsigner
tool.Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
Provides the classes and interfaces for cryptographic
operations.
Provides classes for the secure socket package.
This package provides a pluggable authentication framework.
Provides classes for public key certificates.
Java™ Smart Card I/O API.
Classes for generating and validating XML digital
signatures.
This package defines APIs for signing jar files.
-
Uses of NoSuchAlgorithmException in com.sun.jarsigner
Modifier and TypeMethodDescriptionabstract byte[]
ContentSigner.generateSignedData(ContentSignerParameters parameters, boolean omitContent, boolean applyTimestamp)
Deprecated, for removal: This API element is subject to removal in a future version.Generates a PKCS #7 signed data message. -
Uses of NoSuchAlgorithmException in java.security
Modifier and TypeMethodDescriptionKeyStoreSpi.engineGetEntry(String alias, KeyStore.ProtectionParameter protParam)
Gets aKeyStore.Entry
for the specified alias with the specified protection parameter.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.void
KeyStoreSpi.engineLoad(KeyStore.LoadStoreParameter param)
Loads the keystore using the givenKeyStore.LoadStoreParameter
.abstract void
KeyStoreSpi.engineStore(OutputStream stream, char[] password)
Stores this keystore to the given output stream, and protects its integrity with the given password.void
KeyStoreSpi.engineStore(KeyStore.LoadStoreParameter param)
Stores this keystore using the givenKeyStore.LoadStoreParmeter
.KeyStore.getEntry(String alias, KeyStore.ProtectionParameter protParam)
Gets a keystoreEntry
for the specified alias with the specified protection parameter.static AlgorithmParameterGenerator
AlgorithmParameterGenerator.getInstance(String algorithm)
Returns an AlgorithmParameterGenerator object for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGenerator
AlgorithmParameterGenerator.getInstance(String algorithm, String provider)
Returns an AlgorithmParameterGenerator object for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameterGenerator
AlgorithmParameterGenerator.getInstance(String algorithm, Provider provider)
Returns an AlgorithmParameterGenerator object for generating a set of parameters to be used with the specified algorithm.static AlgorithmParameters
AlgorithmParameters.getInstance(String algorithm)
Returns a parameter object for the specified algorithm.static AlgorithmParameters
AlgorithmParameters.getInstance(String algorithm, String provider)
Returns a parameter object for the specified algorithm.static AlgorithmParameters
AlgorithmParameters.getInstance(String algorithm, Provider provider)
Returns a parameter object for the specified algorithm.static KeyFactory
KeyFactory.getInstance(String algorithm)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.static KeyFactory
KeyFactory.getInstance(String algorithm, String provider)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.static KeyFactory
KeyFactory.getInstance(String algorithm, Provider provider)
Returns a KeyFactory object that converts public/private keys of the specified algorithm.static KeyPairGenerator
KeyPairGenerator.getInstance(String algorithm)
Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyPairGenerator
KeyPairGenerator.getInstance(String algorithm, String provider)
Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyPairGenerator
KeyPairGenerator.getInstance(String algorithm, Provider provider)
Returns a KeyPairGenerator object that generates public/private key pairs for the specified algorithm.static KeyStore
KeyStore.getInstance(File file, char[] password)
Returns a loaded keystore object of the appropriate keystore type.static KeyStore
KeyStore.getInstance(File file, KeyStore.LoadStoreParameter param)
Returns a loaded keystore object of the appropriate keystore type.static MessageDigest
MessageDigest.getInstance(String algorithm)
Returns a MessageDigest object that implements the specified digest algorithm.static MessageDigest
MessageDigest.getInstance(String algorithm, String provider)
Returns a MessageDigest object that implements the specified digest algorithm.static MessageDigest
MessageDigest.getInstance(String algorithm, Provider provider)
Returns a MessageDigest object that implements the specified digest algorithm.static Policy
Policy.getInstance(String type, Policy.Parameters params)
Returns a Policy object of the specified type.static Policy
Policy.getInstance(String type, Policy.Parameters params, String provider)
Returns a Policy object of the specified type.static Policy
Policy.getInstance(String type, Policy.Parameters params, Provider provider)
Returns a Policy object of the specified type.static SecureRandom
SecureRandom.getInstance(String algorithm)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm.static SecureRandom
SecureRandom.getInstance(String algorithm, String provider)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm.static SecureRandom
SecureRandom.getInstance(String algorithm, Provider provider)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm.static SecureRandom
SecureRandom.getInstance(String algorithm, SecureRandomParameters params)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParameters
request.static SecureRandom
SecureRandom.getInstance(String algorithm, SecureRandomParameters params, String provider)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParameters
request.static SecureRandom
SecureRandom.getInstance(String algorithm, SecureRandomParameters params, Provider provider)
Returns aSecureRandom
object that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParameters
request.static Signature
Signature.getInstance(String algorithm)
Returns a Signature object that implements the specified signature algorithm.static Signature
Signature.getInstance(String algorithm, String provider)
Returns a Signature object that implements the specified signature algorithm.static Signature
Signature.getInstance(String algorithm, Provider provider)
Returns a Signature object that implements the specified signature algorithm.static SecureRandom
SecureRandom.getInstanceStrong()
Returns aSecureRandom
object that was selected by using the algorithms/providers specified in thesecurerandom.strongAlgorithms
Security
property.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.void
KeyStore.load(KeyStore.LoadStoreParameter param)
Loads this keystore using the givenLoadStoreParameter
.Provider.Service.newInstance(Object constructorParameter)
Return a new instance of the implementation described by this service.void
KeyStore.store(OutputStream stream, char[] password)
Stores this keystore to the given output stream, and protects its integrity with the given password.void
KeyStore.store(KeyStore.LoadStoreParameter param)
Stores this keystore using the givenLoadStoreParameter
. -
Uses of NoSuchAlgorithmException in java.security.cert
Modifier and TypeMethodDescriptionstatic CertPathBuilder
CertPathBuilder.getInstance(String algorithm)
Returns aCertPathBuilder
object that implements the specified algorithm.static CertPathBuilder
CertPathBuilder.getInstance(String algorithm, String provider)
Returns aCertPathBuilder
object that implements the specified algorithm.static CertPathBuilder
CertPathBuilder.getInstance(String algorithm, Provider provider)
Returns aCertPathBuilder
object that implements the specified algorithm.static CertPathValidator
CertPathValidator.getInstance(String algorithm)
Returns aCertPathValidator
object that implements the specified algorithm.static CertPathValidator
CertPathValidator.getInstance(String algorithm, String provider)
Returns aCertPathValidator
object that implements the specified algorithm.static CertPathValidator
CertPathValidator.getInstance(String algorithm, Provider provider)
Returns aCertPathValidator
object that implements the specified algorithm.static CertStore
CertStore.getInstance(String type, CertStoreParameters params)
Returns aCertStore
object that implements the specifiedCertStore
type and is initialized with the specified parameters.static CertStore
CertStore.getInstance(String type, CertStoreParameters params, String provider)
Returns aCertStore
object that implements the specifiedCertStore
type.static CertStore
CertStore.getInstance(String type, CertStoreParameters params, Provider provider)
Returns aCertStore
object that implements the specifiedCertStore
type.abstract void
Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract void
Verifies that this certificate was signed using the private key that corresponds to the specified public key.void
Verifies that this certificate was signed using the private key that corresponds to the specified public key.void
Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract void
Verifies that this CRL was signed using the private key that corresponds to the given public key.abstract void
Verifies that this CRL was signed using the private key that corresponds to the given public key.void
Verifies that this CRL was signed using the private key that corresponds to the given public key. -
Uses of NoSuchAlgorithmException in javax.crypto
Modifier and TypeMethodDescriptionprotected abstract SecretKey
KeyAgreementSpi.engineGenerateSecret(String algorithm)
Creates the shared secret and returns it as a secret key object of the requested algorithm type.protected abstract void
CipherSpi.engineSetMode(String mode)
Sets the mode of this cipher.protected Key
CipherSpi.engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
Unwrap a previously wrapped key.KeyAgreement.generateSecret(String algorithm)
Creates the shared secret and returns it as aSecretKey
object of the specified algorithm.static Cipher
Cipher.getInstance(String transformation)
Returns aCipher
object that implements the specified transformation.static Cipher
Cipher.getInstance(String transformation, String provider)
Returns aCipher
object that implements the specified transformation.static Cipher
Cipher.getInstance(String transformation, Provider provider)
Returns aCipher
object that implements the specified transformation.static ExemptionMechanism
ExemptionMechanism.getInstance(String algorithm)
Returns anExemptionMechanism
object that implements the specified exemption mechanism algorithm.static ExemptionMechanism
ExemptionMechanism.getInstance(String algorithm, String provider)
Returns anExemptionMechanism
object that implements the specified exemption mechanism algorithm.static ExemptionMechanism
ExemptionMechanism.getInstance(String algorithm, Provider provider)
Returns anExemptionMechanism
object that implements the specified exemption mechanism algorithm.static KeyAgreement
KeyAgreement.getInstance(String algorithm)
Returns aKeyAgreement
object that implements the specified key agreement algorithm.static KeyAgreement
KeyAgreement.getInstance(String algorithm, String provider)
Returns aKeyAgreement
object that implements the specified key agreement algorithm.static KeyAgreement
KeyAgreement.getInstance(String algorithm, Provider provider)
Returns aKeyAgreement
object that implements the specified key agreement algorithm.static KeyGenerator
KeyGenerator.getInstance(String algorithm)
Returns aKeyGenerator
object that generates secret keys for the specified algorithm.static KeyGenerator
KeyGenerator.getInstance(String algorithm, String provider)
Returns aKeyGenerator
object that generates secret keys for the specified algorithm.static KeyGenerator
KeyGenerator.getInstance(String algorithm, Provider provider)
Returns aKeyGenerator
object that generates secret keys for the specified algorithm.static Mac
Mac.getInstance(String algorithm)
Returns aMac
object that implements the specified MAC algorithm.static Mac
Mac.getInstance(String algorithm, String provider)
Returns aMac
object that implements the specified MAC algorithm.static Mac
Mac.getInstance(String algorithm, Provider provider)
Returns aMac
object that implements the specified MAC algorithm.static SecretKeyFactory
SecretKeyFactory.getInstance(String algorithm)
Returns aSecretKeyFactory
object that converts secret keys of the specified algorithm.static SecretKeyFactory
SecretKeyFactory.getInstance(String algorithm, String provider)
Returns aSecretKeyFactory
object that converts secret keys of the specified algorithm.static SecretKeyFactory
SecretKeyFactory.getInstance(String algorithm, Provider provider)
Returns aSecretKeyFactory
object that converts secret keys of the specified algorithm.EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey)
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, String providerName)
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, Provider provider)
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.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.Retrieves the original (encapsulated) object.Retrieves the original (encapsulated) object.Unwrap a previously wrapped key.ModifierConstructorDescriptionEncryptedPrivateKeyInfo(String algName, byte[] encryptedData)
Constructs anEncryptedPrivateKeyInfo
from the encryption algorithm name and the encrypted data.EncryptedPrivateKeyInfo(AlgorithmParameters algParams, byte[] encryptedData)
Constructs anEncryptedPrivateKeyInfo
from the encryption algorithm parameters and the encrypted data. -
Uses of NoSuchAlgorithmException in javax.net.ssl
Modifier and TypeMethodDescriptionprotected abstract void
KeyManagerFactorySpi.engineInit(KeyStore ks, char[] password)
Initializes this factory with a source of key material.static SSLContext
SSLContext.getDefault()
Returns the default SSL context.static KeyManagerFactory
KeyManagerFactory.getInstance(String algorithm)
Returns aKeyManagerFactory
object that acts as a factory for key managers.static KeyManagerFactory
KeyManagerFactory.getInstance(String algorithm, String provider)
Returns aKeyManagerFactory
object that acts as a factory for key managers.static KeyManagerFactory
KeyManagerFactory.getInstance(String algorithm, Provider provider)
Returns aKeyManagerFactory
object that acts as a factory for key managers.static SSLContext
SSLContext.getInstance(String protocol)
Returns aSSLContext
object that implements the specified secure socket protocol.static SSLContext
SSLContext.getInstance(String protocol, String provider)
Returns aSSLContext
object that implements the specified secure socket protocol.static SSLContext
SSLContext.getInstance(String protocol, Provider provider)
Returns aSSLContext
object that implements the specified secure socket protocol.static TrustManagerFactory
TrustManagerFactory.getInstance(String algorithm)
Returns aTrustManagerFactory
object that acts as a factory for trust managers.static TrustManagerFactory
TrustManagerFactory.getInstance(String algorithm, String provider)
Returns aTrustManagerFactory
object that acts as a factory for trust managers.static TrustManagerFactory
TrustManagerFactory.getInstance(String algorithm, Provider provider)
Returns aTrustManagerFactory
object that acts as a factory for trust managers.void
Initializes this factory with a source of key material. -
Uses of NoSuchAlgorithmException in javax.security.auth.login
Modifier and TypeMethodDescriptionstatic Configuration
Configuration.getInstance(String type, Configuration.Parameters params)
Returns a Configuration object of the specified type.static Configuration
Configuration.getInstance(String type, Configuration.Parameters params, String provider)
Returns a Configuration object of the specified type.static Configuration
Configuration.getInstance(String type, Configuration.Parameters params, Provider provider)
Returns a Configuration object of the specified type. -
Uses of NoSuchAlgorithmException in javax.security.cert
Modifier and TypeMethodDescriptionabstract void
Deprecated, for removal: This API element is subject to removal in a future version.Verifies that this certificate was signed using the private key that corresponds to the specified public key.abstract void
Deprecated, for removal: This API element is subject to removal in a future version.Verifies that this certificate was signed using the private key that corresponds to the specified public key. -
Uses of NoSuchAlgorithmException in javax.smartcardio
Modifier and TypeMethodDescriptionstatic TerminalFactory
TerminalFactory.getInstance(String type, Object params)
Returns a TerminalFactory of the specified type that is initialized with the specified parameters.static TerminalFactory
TerminalFactory.getInstance(String type, Object params, String provider)
Returns a TerminalFactory of the specified type that is initialized with the specified parameters.static TerminalFactory
TerminalFactory.getInstance(String type, Object params, Provider provider)
Returns a TerminalFactory of the specified type that is initialized with the specified parameters. -
Uses of NoSuchAlgorithmException in javax.xml.crypto.dsig
Modifier and TypeMethodDescriptionstatic TransformService
TransformService.getInstance(String algorithm, String mechanismType)
Returns aTransformService
that supports the specified algorithm URI (ex:Transform.XPATH2
) and mechanism type (ex: DOM).static TransformService
TransformService.getInstance(String algorithm, String mechanismType, String provider)
Returns aTransformService
that supports the specified algorithm URI (ex:Transform.XPATH2
) and mechanism type (ex: DOM) as supplied by the specified provider.static TransformService
TransformService.getInstance(String algorithm, String mechanismType, Provider provider)
Returns aTransformService
that supports the specified algorithm URI (ex:Transform.XPATH2
) and mechanism type (ex: DOM) as supplied by the specified provider.abstract CanonicalizationMethod
XMLSignatureFactory.newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)
Creates aCanonicalizationMethod
for the specified algorithm URI and parameters.abstract CanonicalizationMethod
XMLSignatureFactory.newCanonicalizationMethod(String algorithm, XMLStructure params)
Creates aCanonicalizationMethod
for the specified algorithm URI and parameters.abstract DigestMethod
XMLSignatureFactory.newDigestMethod(String algorithm, DigestMethodParameterSpec params)
Creates aDigestMethod
for the specified algorithm URI and parameters.abstract SignatureMethod
XMLSignatureFactory.newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)
Creates aSignatureMethod
for the specified algorithm URI and parameters.abstract Transform
XMLSignatureFactory.newTransform(String algorithm, TransformParameterSpec params)
Creates aTransform
for the specified algorithm URI and parameters.abstract Transform
XMLSignatureFactory.newTransform(String algorithm, XMLStructure params)
Creates aTransform
for the specified algorithm URI and parameters. -
Uses of NoSuchAlgorithmException in jdk.security.jarsigner
Modifier and TypeMethodDescriptionJarSigner.Builder.digestAlgorithm(String algorithm)
Sets the digest algorithm.JarSigner.Builder.digestAlgorithm(String algorithm, Provider provider)
Sets the digest algorithm from the specified provider.JarSigner.Builder.signatureAlgorithm(String algorithm)
Sets the signature algorithm.JarSigner.Builder.signatureAlgorithm(String algorithm, Provider provider)
Sets the signature algorithm from the specified provider.