Bouncy Castle Cryptography Library 1.85

org.bouncycastle.asn1.est
Class EstIdentityLinking

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.bouncycastle.asn1.est.CSRChallengeAttribute
          extended byorg.bouncycastle.asn1.est.EstIdentityLinking
All Implemented Interfaces:
ASN1Encodable, Encodable

public class EstIdentityLinking
extends org.bouncycastle.asn1.est.CSRChallengeAttribute

RFC 7894 §3.3 attribute: an unambiguous replacement for the overloaded PKCS#9 attribute when used to convey the 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
EstIdentityLinking(DirectoryString value)
           
EstIdentityLinking(java.lang.String value)
           
 
Method Summary
static EstIdentityLinking fromAttribute(Attribute attribute)
          Extract the value carried by a PKCS#9 Attribute.
protected  ASN1ObjectIdentifier getAttrType()
          The attribute-type OID for this RFC 7894 attribute.
static EstIdentityLinking getInstance(java.lang.Object obj)
           
 java.lang.String getString()
          Return the value as a Java String, decoded from whichever underlying encoding was used.
 DirectoryString getValue()
          Return the value as a DirectoryString.
 ASN1Primitive toASN1Primitive()
          Method providing a primitive representation of this object suitable for encoding.
 Attribute toAttribute()
          Wrap this value in a PKCS#9 Attribute carrying the RFC 7894 OID, ready for inclusion in a 's set (or in a CSR-Attributes response).
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EstIdentityLinking

public EstIdentityLinking(java.lang.String value)

EstIdentityLinking

public EstIdentityLinking(DirectoryString value)
Method Detail

getInstance

public static EstIdentityLinking getInstance(java.lang.Object obj)

fromAttribute

public static EstIdentityLinking fromAttribute(Attribute attribute)
Extract the value carried by a PKCS#9 Attribute.

Throws:
java.lang.IllegalArgumentException - if the attribute is not PKCSObjectIdentifiers.id_aa_estIdentityLinking or does not carry exactly one value.

getAttrType

protected ASN1ObjectIdentifier getAttrType()
Description copied from class: org.bouncycastle.asn1.est.CSRChallengeAttribute
The attribute-type OID for this RFC 7894 attribute. Used by CSRChallengeAttribute.toAttribute() to wrap the value in a PKCS#9 Attribute.


getValue

public DirectoryString getValue()
Return the value as a DirectoryString.


getString

public java.lang.String getString()
Return the value as a Java String, decoded from whichever underlying encoding was used.


toAttribute

public Attribute toAttribute()
Wrap this value in a PKCS#9 Attribute carrying the RFC 7894 OID, ready for inclusion in a 's set (or in a CSR-Attributes response).

Returns:
an of the form )}.

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Description copied from class: ASN1Object
Method providing a primitive representation of this object suitable for encoding.

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object
Returns:
a primitive representation of this object.

Bouncy Castle Cryptography Library 1.85