NamingAuthority (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.asn1.isismtt.x509

## Class NamingAuthority

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.isismtt.x509.NamingAuthority

- All Implemented Interfaces:
    ASN1Encodable, Encodable

      public class NamingAuthority
      extends ASN1Object

  Names of authorities which are responsible for the administration of title registers.

                   NamingAuthority ::= SEQUENCE
                   {
                     namingAuthorityId OBJECT IDENTIFIER OPTIONAL,
                     namingAuthorityUrl IA5String OPTIONAL,
                     namingAuthorityText DirectoryString(SIZE(1..128)) OPTIONAL
                   }

  See Also:
    `AdmissionSyntax`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ASN1ObjectIdentifier` | `id_isismtt_at_namingAuthorities_RechtWirtschaftSteuern` Profession OIDs should always be defined under the OID branch of the responsible naming authority.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NamingAuthority(ASN1ObjectIdentifier namingAuthorityId, java.lang.String namingAuthorityUrl, DirectoryString namingAuthorityText)` Constructor from given details.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static NamingAuthority` | `getInstance(ASN1TaggedObject obj, boolean explicit)`
    `static NamingAuthority` | `getInstance(java.lang.Object obj)`
    `ASN1ObjectIdentifier` | `getNamingAuthorityId()`
    `DirectoryString` | `getNamingAuthorityText()`
    `java.lang.String` | `getNamingAuthorityUrl()`
    `ASN1Primitive` | `toASN1Primitive()` Produce an object suitable for an ASN1OutputStream.

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### id_isismtt_at_namingAuthorities_RechtWirtschaftSteuern

          public static final ASN1ObjectIdentifier id_isismtt_at_namingAuthorities_RechtWirtschaftSteuern

      Profession OIDs should always be defined under the OID branch of the responsible naming authority. At the time of this writing, the work group �Recht, Wirtschaft, Steuern� (�Law, Economy, Taxes�) is registered as the first naming authority under the OID id-isismtt-at-namingAuthorities.

  - ### Constructor Detail

    - #### NamingAuthority

          public NamingAuthority(ASN1ObjectIdentifier namingAuthorityId,
                         java.lang.String namingAuthorityUrl,
                         DirectoryString namingAuthorityText)

      Constructor from given details.

      All parameters can be combined.

      Parameters:
        `namingAuthorityId` - ObjectIdentifier for naming authority.
        `namingAuthorityUrl` - URL for naming authority.
        `namingAuthorityText` - Textual representation of naming authority.

  - ### Method Detail

    - #### getInstance

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

    - #### getInstance

          public static NamingAuthority getInstance(ASN1TaggedObject obj,
                                    boolean explicit)

    - #### getNamingAuthorityId

          public ASN1ObjectIdentifier getNamingAuthorityId()

      Returns:
        Returns the namingAuthorityId.

    - #### getNamingAuthorityText

          public DirectoryString getNamingAuthorityText()

      Returns:
        Returns the namingAuthorityText.

    - #### getNamingAuthorityUrl

          public java.lang.String getNamingAuthorityUrl()

      Returns:
        Returns the namingAuthorityUrl.

    - #### toASN1Primitive

          public ASN1Primitive toASN1Primitive()

      Produce an object suitable for an ASN1OutputStream.

      Returns:

                       NamingAuthority ::= SEQUENCE
                       {
                         namingAuthorityId OBJECT IDENTIFIER OPTIONAL,
                         namingAuthorityUrl IA5String OPTIONAL,
                         namingAuthorityText DirectoryString(SIZE(1..128)) OPTIONAL
                       }

      Specified by:
        `toASN1Primitive` in interface `ASN1Encodable`
      Specified by:
        `toASN1Primitive` in class `ASN1Object`
      Returns:
        a DERObject