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.OpenPGPSignatureChain
containing 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.OpenPGPSignatureChain
containing a certification issued by the given 3rd-party certificate over this identity component.protected OpenPGPCertificate.OpenPGPComponentKey
Return theOpenPGPCertificate.OpenPGPComponentKey
belonging 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.OpenPGPSignatureChain
containing 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.OpenPGPSignatureChain
containing 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.OpenPGPCertificateComponent
Return the (at evaluation time) latest self-signature on the component. That might either be a certification signature, or a revocation.- Specified by:
getLatestSelfSignature
in classOpenPGPCertificate.OpenPGPCertificateComponent
- Parameters:
evaluationTime
- reference time- Returns:
- latest self signature
-
getKeyComponent
Description copied from class:OpenPGPCertificate.OpenPGPCertificateComponent
Return theOpenPGPCertificate.OpenPGPComponentKey
belonging to thisOpenPGPCertificate.OpenPGPCertificateComponent
. If thisOpenPGPCertificate.OpenPGPCertificateComponent
is an instance ofOpenPGPCertificate.OpenPGPComponentKey
, the method simply returnsthis
. If instead, theOpenPGPCertificate.OpenPGPCertificateComponent
is anOpenPGPCertificate.OpenPGPIdentityComponent
, the primary key it is bound to is returned.- Specified by:
getKeyComponent
in classOpenPGPCertificate.OpenPGPCertificateComponent
- Returns:
OpenPGPCertificate.OpenPGPComponentKey
of thisOpenPGPCertificate.OpenPGPCertificateComponent
.
-
getCertificationBy
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationBy(OpenPGPCertificate thirdPartyCertificate) Return the latestOpenPGPCertificate.OpenPGPSignatureChain
containing 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.OpenPGPSignatureChain
containing 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.OpenPGPSignatureChain
containing 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.OpenPGPSignatureChain
containing 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.OpenPGPCertificateComponent
Return a detailed String representation of this component.- Specified by:
toDetailString
in classOpenPGPCertificate.OpenPGPCertificateComponent
- Returns:
- detailed String representation
-