org.bouncycastle.asn1.x509
public class RoleSyntax extends ASN1Encodable
RoleSyntax ::= SEQUENCE {
roleAuthority [0] GeneralNames OPTIONAL,
roleName [1] GeneralName
}
| Constructor Summary | |
|---|---|
| RoleSyntax(GeneralNames roleAuthority, GeneralName roleName)
Constructor. | |
| RoleSyntax(GeneralName roleName)
Constructor. | |
| RoleSyntax(String roleName)
Utility constructor. | |
| RoleSyntax(ASN1Sequence seq)
Constructor that builds an instance of RoleSyntax by
extracting the encoded elements from the ASN1Sequence
object supplied. | |
| Method Summary | |
|---|---|
| static RoleSyntax | getInstance(Object obj)
RoleSyntax factory method. |
| GeneralNames | getRoleAuthority()
Gets the role authority of this RoleSyntax. |
| String[] | getRoleAuthorityAsString()
Gets the role authority as a String[] object. |
| GeneralName | getRoleName()
Gets the role name of this RoleSyntax. |
| String | getRoleNameAsString()
Gets the role name as a java.lang.String object. |
| DERObject | toASN1Object()
Implementation of the method toASN1Object as
required by the superclass ASN1Encodable.
|
| String | toString() |
Parameters: roleAuthority the role authority of this RoleSyntax. roleName the role name of this RoleSyntax.
new RoleSyntax(null, roleName).Parameters: roleName the role name of this RoleSyntax.
String argument representing
the role name, builds a GeneralName to hold the role name
and calls the constructor that takes a GeneralName.Parameters: roleName
RoleSyntax by
extracting the encoded elements from the ASN1Sequence
object supplied.Parameters: seq an instance of ASN1Sequence that holds
the encoded elements used to build this RoleSyntax.
Parameters: obj the object used to construct an instance of
RoleSyntax. It must be an instance of RoleSyntax
or ASN1Sequence.
Returns: the instance of RoleSyntax built from the
supplied object.
Throws: java.lang.IllegalArgumentException if the object passed
to the factory is not an instance of RoleSyntax or
ASN1Sequence.
Returns: an instance of GeneralNames holding the
role authority of this RoleSyntax.
String[] object.Returns: the role authority of this RoleSyntax represented as a
String[] array.
Returns: an instance of GeneralName holding the
role name of this RoleSyntax.
java.lang.String object.Returns: the role name of this RoleSyntax represented as a
java.lang.String object.
toASN1Object as
required by the superclass ASN1Encodable.
RoleSyntax ::= SEQUENCE {
roleAuthority [0] GeneralNames OPTIONAL,
roleName [1] GeneralName
}