Interface KeyMaterial
-
- All Known Implementing Classes:
Certificate,Key
public interface KeyMaterial
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CertificateasCertificate()Return theCertificatebelonging to this key material.java.lang.StringgetFingerprint()Return the fingerprint of the certificate as 40 lowercase hex characters.java.io.InputStreamgetInputStream()Return anInputStreamof the binary representation of the secret key.java.util.List<java.lang.Long>getSubkeyIds()Return aSetcontaining key-ids of subkeys.java.lang.LonggetTag()Return the tag belonging to this key material.
-
-
-
Method Detail
-
getFingerprint
java.lang.String getFingerprint()
Return the fingerprint of the certificate as 40 lowercase hex characters. TODO: Allow OpenPGP V5 fingerprints- Returns:
- fingerprint
-
asCertificate
Certificate asCertificate()
Return theCertificatebelonging to this key material. If this is already aCertificate, return this. If this is aKey, extract theCertificateand return it.- Returns:
- certificate
-
getInputStream
java.io.InputStream getInputStream()
Return anInputStreamof the binary representation of the secret key.- Returns:
- input stream
-
getTag
java.lang.Long getTag()
Return the tag belonging to this key material. The tag can be used to keep an application cache in sync with what is in the directory.- Returns:
- tag
-
getSubkeyIds
java.util.List<java.lang.Long> getSubkeyIds()
Return aSetcontaining key-ids of subkeys.- Returns:
- subkeys
-
-