Uses of Class java.security.InvalidAlgorithmParameterException (Java Platform SE 8 )
Date: 2016-10-23

## Uses of Class
java.security.InvalidAlgorithmParameterException

- Packages that use InvalidAlgorithmParameterException
  Package | Description
  --- | ---
  java.security | Provides the classes and interfaces for the security framework.
  java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
  javax.crypto | Provides the classes and interfaces for cryptographic operations.
  javax.net.ssl | Provides classes for the secure socket package.
  javax.xml.crypto.dsig | Classes for generating and validating XML digital signatures.

- - ### Uses of InvalidAlgorithmParameterException in java.security

    Methods in java.security that throw InvalidAlgorithmParameterException
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract void` | AlgorithmParameterGeneratorSpi.`engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)` Initializes this parameter generator with a set of algorithm-specific parameter generation values.
    `protected void` | SignatureSpi.`engineSetParameter(AlgorithmParameterSpec params)` This method is overridden by providers to initialize this signature engine with the specified parameter set.
    `void` | AlgorithmParameterGenerator.`init(AlgorithmParameterSpec genParamSpec)` Initializes this parameter generator with a set of algorithm-specific parameter generation values.
    `void` | AlgorithmParameterGenerator.`init(AlgorithmParameterSpec genParamSpec, SecureRandom random)` Initializes this parameter generator with a set of algorithm-specific parameter generation values.
    `void` | KeyPairGenerator.`initialize(AlgorithmParameterSpec params)` Initializes the key pair generator using the specified parameter set and the `SecureRandom` implementation of the highest-priority installed provider as the source of randomness.
    `void` | KeyPairGenerator.`initialize(AlgorithmParameterSpec params, SecureRandom random)` Initializes the key pair generator with the given parameter set and source of randomness.
    `void` | KeyPairGeneratorSpi.`initialize(AlgorithmParameterSpec params, SecureRandom random)` Initializes the key pair generator using the specified parameter set and user-provided source of randomness.
    `void` | Signature.`setParameter(AlgorithmParameterSpec params)` Initializes this signature engine with the specified parameter set.

  - ### Uses of InvalidAlgorithmParameterException in java.security.cert

    Methods in java.security.cert that throw InvalidAlgorithmParameterException
    Modifier and Type | Method and Description
    --- | ---
    `CertPathBuilderResult` | CertPathBuilder.`build(CertPathParameters params)` Attempts to build a certification path using the specified algorithm parameter set.
    `abstract CertPathBuilderResult` | CertPathBuilderSpi.`engineBuild(CertPathParameters params)` Attempts to build a certification path using the specified algorithm parameter set.
    `abstract CertPathValidatorResult` | CertPathValidatorSpi.`engineValidate(CertPath certPath, CertPathParameters params)` Validates the specified certification path using the specified algorithm parameter set.
    `static CertStore` | CertStore.`getInstance(String type, CertStoreParameters params)` Returns a `CertStore` object that implements the specified `CertStore` type and is initialized with the specified parameters.
    `static CertStore` | CertStore.`getInstance(String type, CertStoreParameters params, Provider provider)` Returns a `CertStore` object that implements the specified `CertStore` type.
    `static CertStore` | CertStore.`getInstance(String type, CertStoreParameters params, String provider)` Returns a `CertStore` object that implements the specified `CertStore` type.
    `void` | PKIXParameters.`setTrustAnchors(Set<TrustAnchor> trustAnchors)` Sets the `Set` of most-trusted CAs.
    `CertPathValidatorResult` | CertPathValidator.`validate(CertPath certPath, CertPathParameters params)` Validates the specified certification path using the specified algorithm parameter set.

    Constructors in java.security.cert that throw InvalidAlgorithmParameterException
    Constructor and Description
    `CertStoreSpi(CertStoreParameters params)` The sole constructor.
    `PKIXBuilderParameters(KeyStore keystore, CertSelector targetConstraints)` Creates an instance of `PKIXBuilderParameters` that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified `KeyStore`.
    `PKIXBuilderParameters(Set<TrustAnchor> trustAnchors, CertSelector targetConstraints)` Creates an instance of `PKIXBuilderParameters` with the specified `Set` of most-trusted CAs.
    `PKIXParameters(KeyStore keystore)` Creates an instance of `PKIXParameters` that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified `KeyStore`.
    `PKIXParameters(Set<TrustAnchor> trustAnchors)` Creates an instance of `PKIXParameters` with the specified `Set` of most-trusted CAs.

  - ### Uses of InvalidAlgorithmParameterException in javax.crypto

    Methods in javax.crypto that throw InvalidAlgorithmParameterException
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract void` | KeyGeneratorSpi.`engineInit(AlgorithmParameterSpec params, SecureRandom random)` Initializes the key generator with the specified parameter set and a user-provided source of randomness.
    `protected abstract void` | CipherSpi.`engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)` Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
    `protected abstract void` | CipherSpi.`engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)` Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
    `protected abstract void` | ExemptionMechanismSpi.`engineInit(Key key, AlgorithmParameters params)` Initializes this exemption mechanism with a key and a set of algorithm parameters.
    `protected abstract void` | ExemptionMechanismSpi.`engineInit(Key key, AlgorithmParameterSpec params)` Initializes this exemption mechanism with a key and a set of algorithm parameters.
    `protected abstract void` | MacSpi.`engineInit(Key key, AlgorithmParameterSpec params)` Initializes the MAC with the given (secret) key and algorithm parameters.
    `protected abstract void` | KeyAgreementSpi.`engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)` Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.
    `void` | KeyGenerator.`init(AlgorithmParameterSpec params)` Initializes this key generator with the specified parameter set.
    `void` | KeyGenerator.`init(AlgorithmParameterSpec params, SecureRandom random)` Initializes this key generator with the specified parameter set and a user-provided source of randomness.
    `void` | Cipher.`init(int opmode, Key key, AlgorithmParameters params)` Initializes this cipher with a key and a set of algorithm parameters.
    `void` | Cipher.`init(int opmode, Key key, AlgorithmParameterSpec params)` Initializes this cipher with a key and a set of algorithm parameters.
    `void` | Cipher.`init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)` Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
    `void` | Cipher.`init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)` Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.
    `void` | ExemptionMechanism.`init(Key key, AlgorithmParameters params)` Initializes this exemption mechanism with a key and a set of algorithm parameters.
    `void` | Mac.`init(Key key, AlgorithmParameterSpec params)` Initializes this `Mac` object with the given key and algorithm parameters.
    `void` | ExemptionMechanism.`init(Key key, AlgorithmParameterSpec params)` Initializes this exemption mechanism with a key and a set of algorithm parameters.
    `void` | KeyAgreement.`init(Key key, AlgorithmParameterSpec params)` Initializes this key agreement with the given key and set of algorithm parameters.
    `void` | KeyAgreement.`init(Key key, AlgorithmParameterSpec params, SecureRandom random)` Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.

  - ### Uses of InvalidAlgorithmParameterException in javax.net.ssl

    Methods in javax.net.ssl that throw InvalidAlgorithmParameterException
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract void` | KeyManagerFactorySpi.`engineInit(ManagerFactoryParameters spec)` Initializes this factory with a source of key material.
    `protected abstract void` | TrustManagerFactorySpi.`engineInit(ManagerFactoryParameters spec)` Initializes this factory with a source of provider-specific key material.
    `void` | TrustManagerFactory.`init(ManagerFactoryParameters spec)` Initializes this factory with a source of provider-specific trust material.
    `void` | KeyManagerFactory.`init(ManagerFactoryParameters spec)` Initializes this factory with a source of provider-specific key material.

  - ### Uses of InvalidAlgorithmParameterException in javax.xml.crypto.dsig

    Methods in javax.xml.crypto.dsig that throw InvalidAlgorithmParameterException
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | TransformService.`init(TransformParameterSpec params)` Initializes this `TransformService` with the specified parameters.
    `abstract void` | TransformService.`init(XMLStructure parent, XMLCryptoContext context)` Initializes this `TransformService` with the specified parameters and document context.
    `abstract CanonicalizationMethod` | XMLSignatureFactory.`newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)` Creates a `CanonicalizationMethod` for the specified algorithm URI and parameters.
    `abstract CanonicalizationMethod` | XMLSignatureFactory.`newCanonicalizationMethod(String algorithm, XMLStructure params)` Creates a `CanonicalizationMethod` for the specified algorithm URI and parameters.
    `abstract DigestMethod` | XMLSignatureFactory.`newDigestMethod(String algorithm, DigestMethodParameterSpec params)` Creates a `DigestMethod` for the specified algorithm URI and parameters.
    `abstract SignatureMethod` | XMLSignatureFactory.`newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)` Creates a `SignatureMethod` for the specified algorithm URI and parameters.
    `abstract Transform` | XMLSignatureFactory.`newTransform(String algorithm, TransformParameterSpec params)` Creates a `Transform` for the specified algorithm URI and parameters.
    `abstract Transform` | XMLSignatureFactory.`newTransform(String algorithm, XMLStructure params)` Creates a `Transform` for the specified algorithm URI and parameters.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.