Class ProfessionInfo

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class ProfessionInfo
    extends ASN1Object
    Professions, specializations, disciplines, fields of activity, etc.
                   ProfessionInfo ::= SEQUENCE 
                   {
                     namingAuthority [0] EXPLICIT NamingAuthority OPTIONAL,
                     professionItems SEQUENCE OF DirectoryString (SIZE(1..128)),
                     professionOIDs SEQUENCE OF OBJECT IDENTIFIER OPTIONAL,
                     registrationNumber PrintableString(SIZE(1..128)) OPTIONAL,
                     addProfessionInfo OCTET STRING OPTIONAL 
                   }
     
    See Also:
    AdmissionSyntax
    • Constructor Detail

      • ProfessionInfo

        public ProfessionInfo​(NamingAuthority namingAuthority,
                              DirectoryString[] professionItems,
                              ASN1ObjectIdentifier[] professionOIDs,
                              java.lang.String registrationNumber,
                              ASN1OctetString addProfessionInfo)
        Constructor from given details.

        professionItems is mandatory, all other parameters are optional.

        Parameters:
        namingAuthority - The naming authority.
        professionItems - Directory strings of the profession.
        professionOIDs - DERObjectIdentfier objects for the profession.
        registrationNumber - Registration number.
        addProfessionInfo - Additional infos in encoded form.
    • Method Detail

      • getInstance

        public static ProfessionInfo getInstance​(java.lang.Object obj)
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Produce an object suitable for an ASN1OutputStream.

        Returns:

                       ProfessionInfo ::= SEQUENCE
                       {
                         namingAuthority [0] EXPLICIT NamingAuthority OPTIONAL,
                         professionItems SEQUENCE OF DirectoryString (SIZE(1..128)),
                         professionOIDs SEQUENCE OF OBJECT IDENTIFIER OPTIONAL,
                         registrationNumber PrintableString(SIZE(1..128)) OPTIONAL,
                         addProfessionInfo OCTET STRING OPTIONAL
                       }
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a DERObject
      • getAddProfessionInfo

        public ASN1OctetString getAddProfessionInfo()
        Returns:
        Returns the addProfessionInfo.
      • getNamingAuthority

        public NamingAuthority getNamingAuthority()
        Returns:
        Returns the namingAuthority.
      • getProfessionItems

        public DirectoryString[] getProfessionItems()
        Returns:
        Returns the professionItems.
      • getProfessionOIDs

        public ASN1ObjectIdentifier[] getProfessionOIDs()
        Returns:
        Returns the professionOIDs.
      • getRegistrationNumber

        public java.lang.String getRegistrationNumber()
        Returns:
        Returns the registrationNumber.