Package org.bouncycastle.openpgp.api
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 latestOpenPGPCertificate.OpenPGPSignatureChaincontaining a certification issued by the given 3rd-party certificate over this identity component.getCertificationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the latest (at evaluation time)OpenPGPCertificate.OpenPGPSignatureChaincontaining a certification issued by the given 3rd-party certificate over this identity 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 latestOpenPGPCertificate.OpenPGPSignatureChaincontaining a revocation issued by the given 3rd-party certificate over this identity component.getRevocationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the latest (at evaluation time)OpenPGPCertificate.OpenPGPSignatureChaincontaining a revocation issued by the given 3rd-party certificate over this identity component.Return a detailed String representation of this component.Methods inherited from class org.bouncycastle.openpgp.api.OpenPGPCertificate.OpenPGPCertificateComponent
getAEADCipherSuitePreferences, getAEADCipherSuitePreferences, getApplyingSubpacket, getCertificate, getCertification, getCompressionAlgorithmPreferences, getCompressionAlgorithmPreferences, getFeatures, getFeatures, getHashAlgorithmPreferences, getHashAlgorithmPreferences, getKeyExpirationDate, getKeyExpirationDateAt, getKeyFlags, getKeyFlags, getLatestSelfSignature, getMergedDanglingExternalSignatureChainEndsFrom, getPublicComponent, getRevocation, getSignatureChains, getSymmetricCipherPreferences, getSymmetricCipherPreferences, 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.
-
getCertificationBy
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationBy(OpenPGPCertificate thirdPartyCertificate) Return the latestOpenPGPCertificate.OpenPGPSignatureChaincontaining a certification issued by the given 3rd-party certificate over this identity component.- Parameters:
thirdPartyCertificate- certificate of a 3rd party- Returns:
- 3rd party certification
-
getCertificationBy
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the latest (at evaluation time)OpenPGPCertificate.OpenPGPSignatureChaincontaining a certification issued by the given 3rd-party certificate over this identity component.- Parameters:
thirdPartyCertificate- certificate of a 3rd partyevaluationTime- reference time- Returns:
- 3rd party certification
-
getRevocationBy
public OpenPGPCertificate.OpenPGPSignatureChain getRevocationBy(OpenPGPCertificate thirdPartyCertificate) Return the latestOpenPGPCertificate.OpenPGPSignatureChaincontaining a revocation issued by the given 3rd-party certificate over this identity component.- Parameters:
thirdPartyCertificate- certificate of a 3rd party- Returns:
- 3rd party revocation signature
-
getRevocationBy
public OpenPGPCertificate.OpenPGPSignatureChain getRevocationBy(OpenPGPCertificate thirdPartyCertificate, Date evaluationTime) Return the latest (at evaluation time)OpenPGPCertificate.OpenPGPSignatureChaincontaining a revocation issued by the given 3rd-party certificate over this identity component.- Parameters:
thirdPartyCertificate- certificate of a 3rd partyevaluationTime- reference time- Returns:
- 3rd party revocation signature
-
toDetailString
Description copied from class:OpenPGPCertificate.OpenPGPCertificateComponentReturn a detailed String representation of this component.- Specified by:
toDetailStringin classOpenPGPCertificate.OpenPGPCertificateComponent- Returns:
- detailed String representation
-