Package org.pgpainless.key.util
Class RevocationAttributes
- java.lang.Object
-
- org.pgpainless.key.util.RevocationAttributes
-
public final class RevocationAttributes extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RevocationAttributes.Reason
Reason for revocation.static class
RevocationAttributes.RevocationType
static class
RevocationAttributes.WithDescription
static class
RevocationAttributes.WithReason
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RevocationAttributes.WithReason
createCertificateRevocation()
Build aRevocationAttributes
object suitable for certification (e.g. user-id) revocations.static RevocationAttributes.WithReason
createKeyRevocation()
Build aRevocationAttributes
object suitable for key revocations.String
getDescription()
Return the human-readable description for the revocation reason.RevocationAttributes.Reason
getReason()
Return the machine-readable reason for revocation.
-
-
-
Method Detail
-
getReason
@Nonnull public RevocationAttributes.Reason getReason()
Return the machine-readable reason for revocation.- Returns:
- reason
-
getDescription
@Nonnull public String getDescription()
Return the human-readable description for the revocation reason.- Returns:
- description
-
createKeyRevocation
public static RevocationAttributes.WithReason createKeyRevocation()
Build aRevocationAttributes
object suitable for key revocations. Key revocations are revocations for keys or subkeys.- Returns:
- builder
-
createCertificateRevocation
public static RevocationAttributes.WithReason createCertificateRevocation()
Build aRevocationAttributes
object suitable for certification (e.g. user-id) revocations.- Returns:
- builder
-
-