Class EstIdentityLinking
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.est.EstIdentityLinking
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable
public class EstIdentityLinking
extends org.bouncycastle.asn1.ASN1Object
RFC 7894 §3.3
estIdentityLinking attribute: an unambiguous replacement for the
overloaded PKCS#9 challengePassword attribute when used to convey
the tls-unique value linking the certificate request to the
authenticated TLS session per
RFC 7030 §3.5.
estIdentityLinking ATTRIBUTE ::= {
WITH SYNTAX DirectoryString {ub-aa-est-identity-linking}
EQUALITY MATCHING RULE caseExactMatch
SINGLE VALUE TRUE
ID id-aa-estIdentityLinking
}
ub-aa-est-identity-linking INTEGER ::= 255
Identified by PKCSObjectIdentifiers.id_aa_estIdentityLinking.-
Constructor Summary
ConstructorsConstructorDescriptionEstIdentityLinking(String value) EstIdentityLinking(org.bouncycastle.asn1.x500.DirectoryString value) -
Method Summary
Modifier and TypeMethodDescriptionstatic EstIdentityLinkingfromAttribute(org.bouncycastle.asn1.pkcs.Attribute attribute) Extract theestIdentityLinkingvalue carried by a PKCS#9Attribute.protected org.bouncycastle.asn1.ASN1ObjectIdentifierThe attribute-type OID for this RFC 7894 attribute.static EstIdentityLinkinggetInstance(Object obj) Return the value as a JavaString, decoded from whichever underlyingDirectoryStringencoding was used.org.bouncycastle.asn1.x500.DirectoryStringgetValue()Return the value as aDirectoryString.org.bouncycastle.asn1.ASN1Primitiveorg.bouncycastle.asn1.pkcs.AttributeWrap this value in a PKCS#9Attributecarrying the RFC 7894 OID, ready for inclusion in aCertificationRequest'sattributesset (or in a CSR-Attributes response).Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
EstIdentityLinking
-
EstIdentityLinking
public EstIdentityLinking(org.bouncycastle.asn1.x500.DirectoryString value)
-
-
Method Details
-
getInstance
-
fromAttribute
Extract theestIdentityLinkingvalue carried by a PKCS#9Attribute.- Throws:
IllegalArgumentException- if the attribute is notPKCSObjectIdentifiers.id_aa_estIdentityLinkingor does not carry exactly one value.
-
getAttrType
protected org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType()The attribute-type OID for this RFC 7894 attribute. Used bytoAttribute()to wrap the value in a PKCS#9Attribute. -
getValue
public org.bouncycastle.asn1.x500.DirectoryString getValue()Return the value as aDirectoryString. -
getString
-
toAttribute
public org.bouncycastle.asn1.pkcs.Attribute toAttribute()Wrap this value in a PKCS#9Attributecarrying the RFC 7894 OID, ready for inclusion in aCertificationRequest'sattributesset (or in a CSR-Attributes response).- Returns:
- an
Attributeof the form(oid, {value}).
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-