public class OpenPgpSelf extends OpenPgpContact
OpenPgpStore
, giving
access to our own encryption keys etc.jid, store, unfetchableKeys
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.openpgp.PGPPublicKeyRingCollection |
getAnnouncedPublicKeys()
Return a
PGPPublicKeyRingCollection containing only the public keys belonging to our signing key ring. |
org.bouncycastle.openpgp.PGPSecretKeyRingCollection |
getSecretKeys()
Return a
PGPSecretKeyRingCollection which contains all of our PGPSecretKeyRing s. |
org.pgpainless.key.OpenPgpV4Fingerprint |
getSigningKeyFingerprint()
Return the
OpenPgpV4Fingerprint of our signing key. |
org.bouncycastle.openpgp.PGPSecretKeyRing |
getSigningKeyRing()
Return the
PGPSecretKeyRing which we will use to sign our messages. |
boolean |
hasSecretKeyAvailable()
Return true, if we have a usable secret key available.
|
distrust, getAnyPublicKeys, getFingerprintsOfKeysWithState, getJid, getPublicKeysOfTrustState, getTrust, getTrustedAnnouncedKeys, getTrustedFingerprints, getUndecidedFingerprints, getUnfetchableKeys, getUntrustedFingerprints, hasUndecidedKeys, isTrusted, trust, updateKeys, updateKeys
public boolean hasSecretKeyAvailable() throws IOException, org.bouncycastle.openpgp.PGPException
IOException
- IO is dangerousorg.bouncycastle.openpgp.PGPException
- PGP is brittlepublic org.bouncycastle.openpgp.PGPSecretKeyRingCollection getSecretKeys() throws IOException, org.bouncycastle.openpgp.PGPException
PGPSecretKeyRingCollection
which contains all of our PGPSecretKeyRing
s.IOException
- IO is dangerousorg.bouncycastle.openpgp.PGPException
- PGP is brittlepublic org.bouncycastle.openpgp.PGPSecretKeyRing getSigningKeyRing() throws IOException, org.bouncycastle.openpgp.PGPException
PGPSecretKeyRing
which we will use to sign our messages.IOException
- IO is dangerousorg.bouncycastle.openpgp.PGPException
- PGP is brittlepublic org.pgpainless.key.OpenPgpV4Fingerprint getSigningKeyFingerprint() throws IOException, org.bouncycastle.openpgp.PGPException
OpenPgpV4Fingerprint
of our signing key.IOException
- IO is dangerousorg.bouncycastle.openpgp.PGPException
- PGP is brittlepublic org.bouncycastle.openpgp.PGPPublicKeyRingCollection getAnnouncedPublicKeys() throws IOException, org.bouncycastle.openpgp.PGPException
PGPPublicKeyRingCollection
containing only the public keys belonging to our signing key ring.
TODO: Add support for public keys of other devices of the owner.getAnnouncedPublicKeys
in class OpenPgpContact
IOException
- IO is dangerous.org.bouncycastle.openpgp.PGPException
- PGP is brittle.