| 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. | 
| 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  SecureRandomimplementation of the highest-priority installed provider as the 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 | KeyPairGenerator. initialize(AlgorithmParameterSpec params,
          SecureRandom random)Initializes the key pair generator with the given parameter
 set and source of randomness. | 
| void | Signature. setParameter(AlgorithmParameterSpec params)Initializes this signature engine with the specified parameter set. | 
| 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  CertStoreobject that implements the specifiedCertStoretype and is initialized with the specified
 parameters. | 
| static CertStore | CertStore. getInstance(String type,
           CertStoreParameters params,
           Provider provider)Returns a  CertStoreobject that implements the specifiedCertStoretype. | 
| static CertStore | CertStore. getInstance(String type,
           CertStoreParameters params,
           String provider)Returns a  CertStoreobject that implements the specifiedCertStoretype. | 
| void | PKIXParameters. setTrustAnchors(Set<TrustAnchor> trustAnchors)Sets the  Setof most-trusted CAs. | 
| CertPathValidatorResult | CertPathValidator. validate(CertPath certPath,
        CertPathParameters params)Validates the specified certification path using the specified
 algorithm parameter set. | 
| Constructor and Description | 
|---|
| CertStoreSpi(CertStoreParameters params)The sole constructor. | 
| PKIXBuilderParameters(KeyStore keystore,
                     CertSelector targetConstraints)Creates an instance of  PKIXBuilderParametersthat
 populates the set of most-trusted CAs from the trusted
 certificate entries contained in the specifiedKeyStore. | 
| PKIXBuilderParameters(Set<TrustAnchor> trustAnchors,
                     CertSelector targetConstraints)Creates an instance of  PKIXBuilderParameterswith
 the specifiedSetof most-trusted CAs. | 
| PKIXParameters(KeyStore keystore)Creates an instance of  PKIXParametersthat
 populates the set of most-trusted CAs from the trusted
 certificate entries contained in the specifiedKeyStore. | 
| PKIXParameters(Set<TrustAnchor> trustAnchors)Creates an instance of  PKIXParameterswith the specifiedSetof most-trusted CAs. | 
| 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 | ExemptionMechanism. init(Key key,
    AlgorithmParameterSpec params)Initializes this exemption mechanism with a key and a set of algorithm
 parameters. | 
| void | Mac. init(Key key,
    AlgorithmParameterSpec params)Initializes this  Macobject with the given key and
 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. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | TransformService. init(TransformParameterSpec params)Initializes this  TransformServicewith the specified
 parameters. | 
| abstract void | TransformService. init(XMLStructure parent,
    XMLCryptoContext context)Initializes this  TransformServicewith the specified
 parameters and document context. | 
| abstract CanonicalizationMethod | XMLSignatureFactory. newCanonicalizationMethod(String algorithm,
                         C14NMethodParameterSpec params)Creates a  CanonicalizationMethodfor the specified
 algorithm URI and parameters. | 
| abstract CanonicalizationMethod | XMLSignatureFactory. newCanonicalizationMethod(String algorithm,
                         XMLStructure params)Creates a  CanonicalizationMethodfor the specified
 algorithm URI and parameters. | 
| abstract DigestMethod | XMLSignatureFactory. newDigestMethod(String algorithm,
               DigestMethodParameterSpec params)Creates a  DigestMethodfor the specified algorithm URI
 and parameters. | 
| abstract SignatureMethod | XMLSignatureFactory. newSignatureMethod(String algorithm,
                  SignatureMethodParameterSpec params)Creates a  SignatureMethodfor the specified algorithm URI
 and parameters. | 
| abstract Transform | XMLSignatureFactory. newTransform(String algorithm,
            TransformParameterSpec params)Creates a  Transformfor the specified algorithm URI
 and parameters. | 
| abstract Transform | XMLSignatureFactory. newTransform(String algorithm,
            XMLStructure params)Creates a  Transformfor 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.