org.bouncycastle.asn1.isismtt.x509
Class Admissions

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.isismtt.x509.Admissions
All Implemented Interfaces:
DEREncodable

public class Admissions
extends ASN1Encodable

An Admissions structure.

            Admissions ::= SEQUENCE
            {
              admissionAuthority [0] EXPLICIT GeneralName OPTIONAL
              namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL
              professionInfos SEQUENCE OF ProfessionInfo
            }
 

See Also:
AdmissionSyntax, ProfessionInfo, NamingAuthority

Field Summary
private  GeneralName admissionAuthority
           
private  NamingAuthority namingAuthority
           
private  ASN1Sequence professionInfos
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
private Admissions(ASN1Sequence seq)
          Constructor from ASN1Sequence.
  Admissions(GeneralName admissionAuthority, NamingAuthority namingAuthority, ProfessionInfo[] professionInfos)
          Constructor from a given details.
 
Method Summary
 GeneralName getAdmissionAuthority()
           
static Admissions getInstance(java.lang.Object obj)
           
 NamingAuthority getNamingAuthority()
           
 ProfessionInfo[] getProfessionInfos()
           
 DERObject toASN1Object()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

admissionAuthority

private GeneralName admissionAuthority

namingAuthority

private NamingAuthority namingAuthority

professionInfos

private ASN1Sequence professionInfos
Constructor Detail

Admissions

private Admissions(ASN1Sequence seq)
Constructor from ASN1Sequence.

The sequence is of type ProcurationSyntax:

            Admissions ::= SEQUENCE
            {
              admissionAuthority [0] EXPLICIT GeneralName OPTIONAL
              namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL
              professionInfos SEQUENCE OF ProfessionInfo
            }
 

Parameters:
seq - The ASN.1 sequence.

Admissions

public Admissions(GeneralName admissionAuthority,
                  NamingAuthority namingAuthority,
                  ProfessionInfo[] professionInfos)
Constructor from a given details.

Parameter professionInfos is mandatory.

Parameters:
admissionAuthority - The admission authority.
namingAuthority - The naming authority.
professionInfos - The profession infos.
Method Detail

getInstance

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

getAdmissionAuthority

public GeneralName getAdmissionAuthority()

getNamingAuthority

public NamingAuthority getNamingAuthority()

getProfessionInfos

public ProfessionInfo[] getProfessionInfos()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Returns:

       Admissions ::= SEQUENCE
       {
         admissionAuthority [0] EXPLICIT GeneralName OPTIONAL
         namingAuthority [1] EXPLICIT NamingAuthority OPTIONAL
         professionInfos SEQUENCE OF ProfessionInfo
       }
 

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a DERObject