Class OpenPGPCertificate.OpenPGPIdentityComponent
java.lang.Object
org.bouncycastle.openpgp.api.OpenPGPCertificate.OpenPGPCertificateComponent
org.bouncycastle.openpgp.api.OpenPGPCertificate.OpenPGPIdentityComponent
- Direct Known Subclasses:
OpenPGPCertificate.OpenPGPUserAttribute, OpenPGPCertificate.OpenPGPUserId
- Enclosing class:
OpenPGPCertificate
public abstract static class OpenPGPCertificate.OpenPGPIdentityComponent
extends OpenPGPCertificate.OpenPGPCertificateComponent
An identity bound to the
OpenPGPCertificate.OpenPGPPrimaryKey of a OpenPGPCertificate.
An identity may either be a OpenPGPCertificate.OpenPGPUserId or (deprecated) OpenPGPCertificate.OpenPGPUserAttribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCertificationBy(OpenPGPCertificate thirdPartyCertificate) Return the latest third-party certification signature issued by the third-party certificate over this component.getCertificationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the - at evaluation time - latest third-party certification signature issued by the third-party certificate over this component.getCertificationsBy(OpenPGPCertificate thirdPartyCertificate) Return all third-party certification signatures issued by the third-party certificate over this component.protected OpenPGPCertificate.OpenPGPComponentKeyReturn theOpenPGPCertificate.OpenPGPComponentKeybelonging to thisOpenPGPCertificate.OpenPGPCertificateComponent.getLatestSelfSignature(Date evaluationTime) Return the (at evaluation time) latest self-signature on the component.Return the primary key, which this identity belongs to.getRevocationBy(OpenPGPCertificate thirdPartyCertificate) Return the latest third-party revocation signature issued by the third-party certificate over this component.getRevocationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the - at evaluation time - latest third-party revocation signature issued by the third-party certificate over this component.getRevocationsBy(OpenPGPCertificate thirdPartyCertificate) Return all third-party revocation signatures issued by the third-party certificate over this component.Return a detailed String representation of this component.Methods inherited from class OpenPGPCertificate.OpenPGPCertificateComponent
getAEADCipherSuitePreferences, getAEADCipherSuitePreferences, getApplyingSubpacket, getCertificate, getCertification, getCertification, getCompressionAlgorithmPreferences, getCompressionAlgorithmPreferences, getFeatures, getFeatures, getHashAlgorithmPreferences, getHashAlgorithmPreferences, getKeyExpirationDate, getKeyExpirationDateAt, getKeyFlags, getKeyFlags, getLatestSelfSignature, getMergedDanglingExternalSignatureChainEndsFrom, getPublicComponent, getRevocation, getRevocation, getSelfSignatureChains, getSignatureChains, getSymmetricCipherPreferences, getSymmetricCipherPreferences, getThirdPartyCertifications, getThirdPartyRevocations, getThirdPartySignatureChainsBy, hasKeyFlags, isBound, isBoundAt
-
Constructor Details
-
OpenPGPIdentityComponent
-
-
Method Details
-
getPrimaryKey
Return the primary key, which this identity belongs to.- Returns:
- primary key
-
getLatestSelfSignature
Description copied from class:OpenPGPCertificate.OpenPGPCertificateComponentReturn the (at evaluation time) latest self-signature on the component. That might either be a certification signature, or a revocation.- Specified by:
getLatestSelfSignaturein classOpenPGPCertificate.OpenPGPCertificateComponent- Parameters:
evaluationTime- reference time- Returns:
- latest self signature
-
getKeyComponent
Description copied from class:OpenPGPCertificate.OpenPGPCertificateComponentReturn theOpenPGPCertificate.OpenPGPComponentKeybelonging to thisOpenPGPCertificate.OpenPGPCertificateComponent. If thisOpenPGPCertificate.OpenPGPCertificateComponentis an instance ofOpenPGPCertificate.OpenPGPComponentKey, the method simply returnsthis
. If instead, theOpenPGPCertificate.OpenPGPCertificateComponentis anOpenPGPCertificate.OpenPGPIdentityComponent, the primary key it is bound to is returned.- Specified by:
getKeyComponentin classOpenPGPCertificate.OpenPGPCertificateComponent- Returns:
OpenPGPCertificate.OpenPGPComponentKeyof thisOpenPGPCertificate.OpenPGPCertificateComponent.
-
getCertificationsBy
public OpenPGPCertificate.OpenPGPSignatureChains getCertificationsBy(OpenPGPCertificate thirdPartyCertificate) Return all third-party certification signatures issued by the third-party certificate over this component. Each certification is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the certification is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at certification signature creation time.- Parameters:
thirdPartyCertificate- third-party certificate- Returns:
- all certifications by the third-party cert as full signature chains
-
getCertificationBy
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationBy(OpenPGPCertificate thirdPartyCertificate) Return the latest third-party certification signature issued by the third-party certificate over this component. The certification is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the certification is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at certification signature creation time.- Parameters:
thirdPartyCertificate- third-party certificate- Returns:
- latest certification by the third-party cert as full signature chain
-
getCertificationBy
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the - at evaluation time - latest third-party certification signature issued by the third-party certificate over this component. The certification is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the certification is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at certification signature creation time.- Parameters:
thirdPartyCertificate- third-party certificateevaluationTime- reference time- Returns:
- at reference time latest certification by the third-party cert as full signature chain
-
getRevocationsBy
public OpenPGPCertificate.OpenPGPSignatureChains getRevocationsBy(OpenPGPCertificate thirdPartyCertificate) Return all third-party revocation signatures issued by the third-party certificate over this component. Each revocation is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the revocation is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at revocation signature creation time.- Parameters:
thirdPartyCertificate- third-party certificate- Returns:
- all revocations by the third-party cert as full signature chains
-
getRevocationBy
public OpenPGPCertificate.OpenPGPSignatureChain getRevocationBy(OpenPGPCertificate thirdPartyCertificate) Return the latest third-party revocation signature issued by the third-party certificate over this component. The revocation is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the revocation is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at revocation signature creation time.- Parameters:
thirdPartyCertificate- third-party certificate- Returns:
- latest revocation by the third-party cert as full signature chain
-
getRevocationBy
public OpenPGPCertificate.OpenPGPSignatureChain getRevocationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the - at evaluation time - latest third-party revocation signature issued by the third-party certificate over this component. The revocation is returned as anOpenPGPCertificate.OpenPGPSignatureChainwhere the revocation is the leaf link prepended by the binding signature chain of the issuing third-party certificate component at revocation signature creation time.- Parameters:
thirdPartyCertificate- third-party certificateevaluationTime- reference time- Returns:
- at reference time latest revocation by the third-party cert as full signature chain
-
toDetailString
Description copied from class:OpenPGPCertificate.OpenPGPCertificateComponentReturn a detailed String representation of this component.- Specified by:
toDetailStringin classOpenPGPCertificate.OpenPGPCertificateComponent- Returns:
- detailed String representation
-