public class RoleSyntax extends ASN1Encodable
RoleSyntax ::= SEQUENCE {
roleAuthority [0] GeneralNames OPTIONAL,
roleName [1] GeneralName
}
| Modifier and Type | Field and Description |
|---|---|
private GeneralNames |
roleAuthority |
private GeneralName |
roleName |
BER, DER| Constructor and Description |
|---|
RoleSyntax(ASN1Sequence seq)
Constructor that builds an instance of
RoleSyntax by
extracting the encoded elements from the ASN1Sequence
object supplied. |
RoleSyntax(GeneralName roleName)
Constructor.
|
RoleSyntax(GeneralNames roleAuthority,
GeneralName roleName)
Constructor.
|
RoleSyntax(java.lang.String roleName)
Utility constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
DERObject |
toASN1Object()
Implementation of the method
toASN1Object as
required by the superclass ASN1Encodable. |
java.lang.String |
toString() |
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodeprivate GeneralNames roleAuthority
private GeneralName roleName
public RoleSyntax(GeneralNames roleAuthority, GeneralName roleName)
roleAuthority - the role authority of this RoleSyntax.roleName - the role name of this RoleSyntax.public RoleSyntax(GeneralName roleName)
new RoleSyntax(null, roleName).roleName - the role name of this RoleSyntax.public RoleSyntax(java.lang.String roleName)
String argument representing
the role name, builds a GeneralName to hold the role name
and calls the constructor that takes a GeneralName.roleName - public RoleSyntax(ASN1Sequence seq)
RoleSyntax by
extracting the encoded elements from the ASN1Sequence
object supplied.seq - an instance of ASN1Sequence that holds
the encoded elements used to build this RoleSyntax.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.RoleSyntax built from the
supplied object.java.lang.IllegalArgumentException - if the object passed
to the factory is not an instance of RoleSyntax or
ASN1Sequence.public GeneralNames getRoleAuthority()
GeneralNames holding the
role authority of this RoleSyntax.public GeneralName getRoleName()
GeneralName holding the
role name of this RoleSyntax.public java.lang.String getRoleNameAsString()
java.lang.String object.java.lang.String object.public java.lang.String[] getRoleAuthorityAsString()
String[] object.String[] array.public DERObject toASN1Object()
toASN1Object as
required by the superclass ASN1Encodable.
RoleSyntax ::= SEQUENCE {
roleAuthority [0] GeneralNames OPTIONAL,
roleName [1] GeneralName
}
toASN1Object in class ASN1Encodablepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.