Package org.pgpainless.authentication
Class CertificateAuthenticity.CertificationChain
java.lang.Object
org.pgpainless.authentication.CertificateAuthenticity.CertificationChain
- Enclosing class:
CertificateAuthenticity
-
Constructor Summary
ConstructorsConstructorDescriptionCertificationChain
(int trustAmount, List<CertificateAuthenticity.ChainLink> chainLinks) A chain of certifications. -
Method Summary
Modifier and TypeMethodDescriptionReturn all links in the chain, starting at the trust-root and ending at the target.int
Actual trust amount of the certification chain.
-
Constructor Details
-
CertificationChain
public CertificationChain(int trustAmount, @Nonnull List<CertificateAuthenticity.ChainLink> chainLinks) A chain of certifications.- Parameters:
trustAmount
- actual trust amount of the chainchainLinks
- links of the chain, starting at the trust-root, ending at the target.
-
-
Method Details
-
getTrustAmount
public int getTrustAmount()Actual trust amount of the certification chain.- Returns:
- trust amount
-
getChainLinks
Return all links in the chain, starting at the trust-root and ending at the target.- Returns:
- chain links
-