Package org.pgpainless.authentication
Class CertificateAuthenticity.CertificationChain
- java.lang.Object
-
- org.pgpainless.authentication.CertificateAuthenticity.CertificationChain
-
- Enclosing class:
- CertificateAuthenticity
public static class CertificateAuthenticity.CertificationChain extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CertificationChain(int trustAmount, java.util.List<CertificateAuthenticity.ChainLink> chainLinks)
A chain of certifications.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CertificateAuthenticity.ChainLink>
getChainLinks()
Return all links in the chain, starting at the trust-root and ending at the target.int
getTrustAmount()
Actual trust amount of the certification chain.
-
-
-
Constructor Detail
-
CertificationChain
public CertificationChain(int trustAmount, @Nonnull java.util.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 Detail
-
getTrustAmount
public int getTrustAmount()
Actual trust amount of the certification chain.- Returns:
- trust amount
-
getChainLinks
@Nonnull public java.util.List<CertificateAuthenticity.ChainLink> getChainLinks()
Return all links in the chain, starting at the trust-root and ending at the target.- Returns:
- chain links
-
-