## Uses of Class
java.security.cert.TrustAnchor

- Packages that use TrustAnchor
  Package | Description
  --- | ---
  java.security.cert | Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.

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

    Methods in java.security.cert that return TrustAnchor
    Modifier and Type | Method and Description
    --- | ---
    `TrustAnchor` | PKIXCertPathValidatorResult.`getTrustAnchor()` Returns the `TrustAnchor` describing the CA that served as a trust anchor for the certification path.

    Methods in java.security.cert that return types with arguments of type TrustAnchor
    Modifier and Type | Method and Description
    --- | ---
    `Set<TrustAnchor>` | PKIXParameters.`getTrustAnchors()` Returns an immutable `Set` of the most-trusted CAs.

    Method parameters in java.security.cert with type arguments of type TrustAnchor
    Modifier and Type | Method and Description
    --- | ---
    `void` | PKIXParameters.`setTrustAnchors(Set<TrustAnchor> trustAnchors)` Sets the `Set` of most-trusted CAs.

    Constructors in java.security.cert with parameters of type TrustAnchor
    Constructor and Description
    `PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)` Creates an instance of `PKIXCertPathBuilderResult` containing the specified parameters.
    `PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)` Creates an instance of `PKIXCertPathValidatorResult` containing the specified parameters.

    Constructor parameters in java.security.cert with type arguments of type TrustAnchor
    Constructor and Description
    `PKIXBuilderParameters(Set<TrustAnchor> trustAnchors, CertSelector targetConstraints)` Creates an instance of `PKIXBuilderParameters` with the specified `Set` of most-trusted CAs.
    `PKIXParameters(Set<TrustAnchor> trustAnchors)` Creates an instance of `PKIXParameters` with the specified `Set` of most-trusted CAs.

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, 2019, Oracle and/or its affiliates. All rights reserved.