public class RevocationChallenge
extends org.bouncycastle.asn1.ASN1Object
revocationChallenge attribute: an unambiguous replacement for the
overloaded PKCS#9 challengePassword attribute when its semantic is
the original RFC 2985 certificate-revocation password.
revocationChallenge ATTRIBUTE ::= {
WITH SYNTAX DirectoryString {ub-aa-revocationChallenge}
EQUALITY MATCHING RULE caseExactMatch
SINGLE VALUE TRUE
ID id-aa-revocationChallenge
}
ub-aa-revocationChallenge INTEGER ::= 255
Identified by PKCSObjectIdentifiers.id_aa_revocationChallenge.| Constructor and Description |
|---|
RevocationChallenge(org.bouncycastle.asn1.x500.DirectoryString value) |
RevocationChallenge(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
static RevocationChallenge |
fromAttribute(org.bouncycastle.asn1.pkcs.Attribute attribute)
Extract the
revocationChallenge value carried by a PKCS#9 Attribute. |
protected org.bouncycastle.asn1.ASN1ObjectIdentifier |
getAttrType()
The attribute-type OID for this RFC 7894 attribute.
|
static RevocationChallenge |
getInstance(java.lang.Object obj) |
java.lang.String |
getString()
Return the value as a Java
String, decoded from whichever
underlying DirectoryString encoding was used. |
org.bouncycastle.asn1.x500.DirectoryString |
getValue()
Return the value as a
DirectoryString. |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
org.bouncycastle.asn1.pkcs.Attribute |
toAttribute()
Wrap this value in a PKCS#9
Attribute carrying the RFC 7894 OID,
ready for inclusion in a CertificationRequest's
attributes set (or in a CSR-Attributes response). |
public RevocationChallenge(java.lang.String value)
public RevocationChallenge(org.bouncycastle.asn1.x500.DirectoryString value)
public static RevocationChallenge getInstance(java.lang.Object obj)
public static RevocationChallenge fromAttribute(org.bouncycastle.asn1.pkcs.Attribute attribute)
revocationChallenge value carried by a PKCS#9 Attribute.java.lang.IllegalArgumentException - if the attribute is not
PKCSObjectIdentifiers.id_aa_revocationChallenge or does not
carry exactly one value.protected org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType()
toAttribute() to wrap the value in a PKCS#9 Attribute.public org.bouncycastle.asn1.x500.DirectoryString getValue()
DirectoryString.public java.lang.String getString()
String, decoded from whichever
underlying DirectoryString encoding was used.public org.bouncycastle.asn1.pkcs.Attribute toAttribute()
Attribute carrying the RFC 7894 OID,
ready for inclusion in a CertificationRequest's
attributes set (or in a CSR-Attributes response).Attribute of the form (oid, {value}).public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1Object