public class

RoleSyntax

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.RoleSyntax

Class Overview

Implementation of the RoleSyntax object as specified by the RFC3281.

 RoleSyntax ::= SEQUENCE {
                 roleAuthority  [0] GeneralNames OPTIONAL,
                 roleName       [1] GeneralName
           } 
 

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
RoleSyntax(GeneralNames roleAuthority, GeneralName roleName)
Constructor.
RoleSyntax(GeneralName roleName)
Constructor.
RoleSyntax(String roleName)
Utility constructor.
Public Methods
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()
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public RoleSyntax (GeneralNames roleAuthority, GeneralName roleName)

Constructor.

Parameters
roleAuthority the role authority of this RoleSyntax.
roleName the role name of this RoleSyntax.

public RoleSyntax (GeneralName roleName)

Constructor. Invoking this constructor is the same as invoking new RoleSyntax(null, roleName).

Parameters
roleName the role name of this RoleSyntax.

public RoleSyntax (String roleName)

Utility constructor. Takes a String argument representing the role name, builds a GeneralName to hold the role name and calls the constructor that takes a GeneralName.

Public Methods

public static RoleSyntax getInstance (Object obj)

RoleSyntax factory method.

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
IllegalArgumentException if the object passed to the factory is not an instance of RoleSyntax or ASN1Sequence.

public GeneralNames getRoleAuthority ()

Gets the role authority of this RoleSyntax.

Returns
  • an instance of GeneralNames holding the role authority of this RoleSyntax.

public String[] getRoleAuthorityAsString ()

Gets the role authority as a String[] object.

Returns
  • the role authority of this RoleSyntax represented as a String[] array.

public GeneralName getRoleName ()

Gets the role name of this RoleSyntax.

Returns
  • an instance of GeneralName holding the role name of this RoleSyntax.

public String getRoleNameAsString ()

Gets the role name as a java.lang.String object.

Returns
  • the role name of this RoleSyntax represented as a java.lang.String object.

public DERObject toASN1Object ()

Implementation of the method toASN1Object as required by the superclass ASN1Encodable.

 RoleSyntax ::= SEQUENCE {
                 roleAuthority  [0] GeneralNames OPTIONAL,
                 roleName       [1] GeneralName
           } 
 

public String toString ()