public static class OpenPGPCertificate.OpenPGPPrimaryKey extends OpenPGPCertificate.OpenPGPComponentKey
OpenPGPCertificate.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<OpenPGPCertificate.OpenPGPIdentityComponent> |
identityComponents |
rawPubkey| Constructor and Description |
|---|
OpenPGPPrimaryKey(PGPPublicKey rawPubkey,
OpenPGPCertificate certificate) |
| Modifier and Type | Method and Description |
|---|---|
OpenPGPCertificate.OpenPGPUserId |
getExplicitOrImplicitPrimaryUserId(java.util.Date evaluationTime)
Return the
OpenPGPCertificate.OpenPGPUserId, which is - at evaluation time - considered primary,
either because it is explicitly marked as primary userid, or because it is implicitly primary
(e.g. because it is the sole user-id on the key). |
OpenPGPCertificate.OpenPGPUserId |
getExplicitPrimaryUserId(java.util.Date evaluationTime)
Return the
OpenPGPCertificate.OpenPGPUserId, which is - at evaluation time - explicitly marked as primary. |
protected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> |
getKeySignatures()
Return all direct-key and key-revocation signatures on the primary key.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getLatestDirectKeySelfSignature()
Return the latest DirectKey self-signature on this primary key.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getLatestDirectKeySelfSignature(java.util.Date evaluationTime)
Return the (at evaluation time) latest DirectKey self-signature on this primary key.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getLatestKeyRevocationSelfSignature()
Return the latest KeyRevocation self-signature on this primary key.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getLatestKeyRevocationSelfSignature(java.util.Date evaluationTime)
Return the (at evaluation time) latest KeyRevocation self-signature on this primary key.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getLatestSelfSignature(java.util.Date evaluationTime)
Return the (at evaluation time) latest self-signature on the component.
|
java.util.List<OpenPGPCertificate.OpenPGPUserAttribute> |
getUserAttributes()
Return all
OpenPGPUserAttributes on this key. |
protected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> |
getUserAttributeSignatures(OpenPGPCertificate.OpenPGPUserAttribute identity)
Return all signatures on the given
OpenPGPCertificate.OpenPGPUserAttribute. |
java.util.List<OpenPGPCertificate.OpenPGPUserId> |
getUserIDs()
Return all
OpenPGPUserIds on this key. |
protected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> |
getUserIdSignatures(OpenPGPCertificate.OpenPGPUserId identity)
Return all signatures on the given
OpenPGPCertificate.OpenPGPUserId. |
java.util.List<OpenPGPCertificate.OpenPGPUserId> |
getValidUserIds()
Return a
List containing all currently valid OpenPGPUserIds on this
primary key. |
java.util.List<OpenPGPCertificate.OpenPGPUserId> |
getValidUserIDs(java.util.Date evaluationTime)
Return a
List containing all valid (at evaluation time) OpenPGPUserIds
on this primary key. |
boolean |
isPrimaryKey()
Return true, if this
OpenPGPCertificate.OpenPGPComponentKey represents the primary key of an OpenPGPCertificate. |
java.lang.String |
toDetailString()
Return a detailed String representation of this component.
|
java.lang.String |
toString() |
equals, getAlgorithm, getCreationTime, getKeyComponent, getKeyIdentifier, getPGPPublicKey, getVersion, hashCode, isCertificationKey, isCertificationKey, isEncryptionKey, isEncryptionKey, isEncryptionKey, isSigningKey, isSigningKeygetAEADCipherSuitePreferences, 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, isBoundAtprotected final java.util.List<OpenPGPCertificate.OpenPGPIdentityComponent> identityComponents
public OpenPGPPrimaryKey(PGPPublicKey rawPubkey, OpenPGPCertificate certificate)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDetailString()
OpenPGPCertificate.OpenPGPCertificateComponenttoDetailString in class OpenPGPCertificate.OpenPGPCertificateComponentpublic boolean isPrimaryKey()
OpenPGPCertificate.OpenPGPComponentKeyOpenPGPCertificate.OpenPGPComponentKey represents the primary key of an OpenPGPCertificate.isPrimaryKey in class OpenPGPCertificate.OpenPGPComponentKeypublic OpenPGPCertificate.OpenPGPComponentSignature getLatestDirectKeySelfSignature()
public OpenPGPCertificate.OpenPGPComponentSignature getLatestDirectKeySelfSignature(java.util.Date evaluationTime)
evaluationTime - reference timepublic OpenPGPCertificate.OpenPGPComponentSignature getLatestKeyRevocationSelfSignature()
public OpenPGPCertificate.OpenPGPComponentSignature getLatestKeyRevocationSelfSignature(java.util.Date evaluationTime)
evaluationTime - reference timepublic OpenPGPCertificate.OpenPGPComponentSignature getLatestSelfSignature(java.util.Date evaluationTime)
OpenPGPCertificate.OpenPGPCertificateComponentgetLatestSelfSignature in class OpenPGPCertificate.OpenPGPComponentKeyevaluationTime - reference timepublic java.util.List<OpenPGPCertificate.OpenPGPUserId> getUserIDs()
OpenPGPUserIds on this key.public java.util.List<OpenPGPCertificate.OpenPGPUserId> getValidUserIds()
List containing all currently valid OpenPGPUserIds on this
primary key.public java.util.List<OpenPGPCertificate.OpenPGPUserId> getValidUserIDs(java.util.Date evaluationTime)
List containing all valid (at evaluation time) OpenPGPUserIds
on this primary key.evaluationTime - reference timepublic OpenPGPCertificate.OpenPGPUserId getExplicitPrimaryUserId(java.util.Date evaluationTime)
OpenPGPCertificate.OpenPGPUserId, which is - at evaluation time - explicitly marked as primary.evaluationTime - evaluation timepublic OpenPGPCertificate.OpenPGPUserId getExplicitOrImplicitPrimaryUserId(java.util.Date evaluationTime)
OpenPGPCertificate.OpenPGPUserId, which is - at evaluation time - considered primary,
either because it is explicitly marked as primary userid, or because it is implicitly primary
(e.g. because it is the sole user-id on the key).evaluationTime - evaluation timepublic java.util.List<OpenPGPCertificate.OpenPGPUserAttribute> getUserAttributes()
OpenPGPUserAttributes on this key.protected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> getKeySignatures()
protected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> getUserIdSignatures(OpenPGPCertificate.OpenPGPUserId identity)
OpenPGPCertificate.OpenPGPUserId.identity - user-idprotected java.util.List<OpenPGPCertificate.OpenPGPComponentSignature> getUserAttributeSignatures(OpenPGPCertificate.OpenPGPUserAttribute identity)
OpenPGPCertificate.OpenPGPUserAttribute.identity - user-attribute