Package org.pgpainless.key.util
Class RevocationAttributes.WithReason
java.lang.Object
org.pgpainless.key.util.RevocationAttributes.WithReason
- Enclosing class:
- RevocationAttributes
-
Method Summary
Modifier and TypeMethodDescriptionSet the machine-readable reason.
-
Method Details
-
withReason
Set the machine-readable reason. Note that depending on whether this is a key-revocation or certification-revocation, only certain reason codes are valid. Invalid input will result in anIllegalArgumentException
to be thrown.- Parameters:
reason
- reason- Returns:
- builder
- Throws:
IllegalArgumentException
- in case of an invalid revocation reason
-