Package org.pgpainless.key.info
Class KeyAccessor
java.lang.Object
org.pgpainless.key.info.KeyAccessor
- Direct Known Subclasses:
KeyAccessor.SubKey
,KeyAccessor.ViaKeyId
,KeyAccessor.ViaUserId
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Address the key via key-id.static class
Address the key via a user-id (e.g. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn preferred compression algorithms.Return preferred hash algorithms.Return preferred symmetric key encryption algorithms.abstract org.bouncycastle.openpgp.PGPSignature
Depending on the way we address the key (key-id or user-id), return the respectivePGPSignature
which contains the algorithm preferences we are going to use.
-
Field Details
-
info
-
key
-
-
Method Details
-
getSignatureWithPreferences
@Nonnull public abstract org.bouncycastle.openpgp.PGPSignature getSignatureWithPreferences()Depending on the way we address the key (key-id or user-id), return the respectivePGPSignature
which contains the algorithm preferences we are going to use. If we address a key via its user-id, we want to rely on the algorithm preferences in the user-id certification, while we would instead rely on those in the direct-key signature if we'd address the key by key-id.- Returns:
- signature
-
getPreferredSymmetricKeyAlgorithms
Return preferred symmetric key encryption algorithms.- Returns:
- preferred symmetric algorithms
-
getPreferredHashAlgorithms
Return preferred hash algorithms.- Returns:
- preferred hash algorithms
-
getPreferredCompressionAlgorithms
Return preferred compression algorithms.- Returns:
- preferred compression algorithms
-