|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.asn1.ASN1Object | +--org.bouncycastle.asn1.x509.RoleSyntax
Implementation of the RoleSyntax object as specified by the RFC3281. RoleSyntax ::= SEQUENCE { roleAuthority [0] GeneralNames OPTIONAL, roleName [1] GeneralName }
Constructor Summary | |
RoleSyntax(GeneralName roleName)
Constructor. |
|
RoleSyntax(GeneralNames roleAuthority,
GeneralName roleName)
Constructor. |
|
RoleSyntax(java.lang.String roleName)
Utility constructor. |
Method Summary | |
static RoleSyntax |
getInstance(java.lang.Object obj)
RoleSyntax factory method. |
GeneralNames |
getRoleAuthority()
Gets the role authority of this RoleSyntax. |
java.lang.String[] |
getRoleAuthorityAsString()
Gets the role authority as a String[] object. |
GeneralName |
getRoleName()
Gets the role name of this RoleSyntax. |
java.lang.String |
getRoleNameAsString()
Gets the role name as a java.lang.String object. |
ASN1Primitive |
toASN1Primitive()
Implementation of the method toASN1Object as required by the superclass ASN1Encodable. |
java.lang.String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
public RoleSyntax(GeneralNames roleAuthority, GeneralName roleName)
roleAuthority
- the role authority of this RoleSyntax.roleName
- the role name of this RoleSyntax.public RoleSyntax(GeneralName roleName)
roleName
- the role name of this RoleSyntax.public RoleSyntax(java.lang.String roleName)
roleName
- Method Detail |
public static RoleSyntax getInstance(java.lang.Object obj)
obj
- the object used to construct an instance of
RoleSyntax. It must be an instance of RoleSyntax
or ASN1Sequence.java.lang.IllegalArgumentException
- if the object passed
to the factory is not an instance of RoleSyntax or
ASN1Sequence.public GeneralNames getRoleAuthority()
public GeneralName getRoleName()
public java.lang.String getRoleNameAsString()
public java.lang.String[] getRoleAuthorityAsString()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in class ASN1Object
org.bouncycastle.asn1.ASN1Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |