Class SignerLocation

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class SignerLocation
    extends org.bouncycastle.asn1.ASN1Object
    Signer-Location attribute (RFC3126).
       SignerLocation ::= SEQUENCE {
           countryName        [0] DirectoryString OPTIONAL,
           localityName       [1] DirectoryString OPTIONAL,
           postalAddress      [2] PostalAddress OPTIONAL }
    
       PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString
     
    • Constructor Summary

      Constructors 
      Constructor Description
      SignerLocation​(org.bouncycastle.asn1.ASN1UTF8String countryName, org.bouncycastle.asn1.ASN1UTF8String localityName, org.bouncycastle.asn1.ASN1Sequence postalAddress)  
      SignerLocation​(org.bouncycastle.asn1.x500.DirectoryString countryName, org.bouncycastle.asn1.x500.DirectoryString localityName, org.bouncycastle.asn1.x500.DirectoryString[] postalAddress)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.x500.DirectoryString getCountry()
      Return the countryName DirectoryString
      org.bouncycastle.asn1.DERUTF8String getCountryName()
      Deprecated.
      use getCountry()
      static SignerLocation getInstance​(java.lang.Object obj)  
      org.bouncycastle.asn1.x500.DirectoryString getLocality()
      Return the localityName DirectoryString
      org.bouncycastle.asn1.DERUTF8String getLocalityName()
      Deprecated.
      use getLocality()
      org.bouncycastle.asn1.x500.DirectoryString[] getPostal()
      Return the postalAddress DirectoryStrings
      org.bouncycastle.asn1.ASN1Sequence getPostalAddress()  
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      SignerLocation ::= SEQUENCE { countryName [0] DirectoryString OPTIONAL, localityName [1] DirectoryString OPTIONAL, postalAddress [2] PostalAddress OPTIONAL } PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString DirectoryString ::= CHOICE { teletexString TeletexString (SIZE (1..MAX)), printableString PrintableString (SIZE (1..MAX)), universalString UniversalString (SIZE (1..MAX)), utf8String UTF8String (SIZE (1..
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignerLocation

        public SignerLocation​(org.bouncycastle.asn1.x500.DirectoryString countryName,
                              org.bouncycastle.asn1.x500.DirectoryString localityName,
                              org.bouncycastle.asn1.x500.DirectoryString[] postalAddress)
      • SignerLocation

        public SignerLocation​(org.bouncycastle.asn1.ASN1UTF8String countryName,
                              org.bouncycastle.asn1.ASN1UTF8String localityName,
                              org.bouncycastle.asn1.ASN1Sequence postalAddress)
    • Method Detail

      • getInstance

        public static SignerLocation getInstance​(java.lang.Object obj)
      • getCountry

        public org.bouncycastle.asn1.x500.DirectoryString getCountry()
        Return the countryName DirectoryString
        Returns:
        the countryName, null if absent.
      • getLocality

        public org.bouncycastle.asn1.x500.DirectoryString getLocality()
        Return the localityName DirectoryString
        Returns:
        the localityName, null if absent.
      • getPostal

        public org.bouncycastle.asn1.x500.DirectoryString[] getPostal()
        Return the postalAddress DirectoryStrings
        Returns:
        the postalAddress, null if absent.
      • getCountryName

        public org.bouncycastle.asn1.DERUTF8String getCountryName()
        Deprecated.
        use getCountry()
      • getLocalityName

        public org.bouncycastle.asn1.DERUTF8String getLocalityName()
        Deprecated.
        use getLocality()
      • getPostalAddress

        public org.bouncycastle.asn1.ASN1Sequence getPostalAddress()
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
           SignerLocation ::= SEQUENCE {
               countryName        [0] DirectoryString OPTIONAL,
               localityName       [1] DirectoryString OPTIONAL,
               postalAddress      [2] PostalAddress OPTIONAL }
        
           PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString
           
           DirectoryString ::= CHOICE {
                 teletexString           TeletexString (SIZE (1..MAX)),
                 printableString         PrintableString (SIZE (1..MAX)),
                 universalString         UniversalString (SIZE (1..MAX)),
                 utf8String              UTF8String (SIZE (1.. MAX)),
                 bmpString               BMPString (SIZE (1..MAX)) }
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object