Top Description Fields Constructors Methods
org.bouncycastle.asn1.esf

public Class SignerLocation

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .ASN1UTF8String, .BERTags, .DERSequence, .DERTaggedObject, .DERUTF8String, org.bouncycastle.asn1.x500.DirectoryString

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

Field Summary

Modifier and TypeField and Description
private DirectoryString
private DirectoryString
private ASN1Sequence

Constructor Summary

AccessConstructor and Description
private
private
SignerLocation(DirectoryString countryName, DirectoryString localityName, ASN1Sequence postalAddress)

public
SignerLocation(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress)

public
SignerLocation(ASN1UTF8String countryName, ASN1UTF8String localityName, ASN1Sequence postalAddress)

Method Summary

Modifier and TypeMethod and Description
public DirectoryString

Returns:

the countryName, null if absent.
getCountry
()

Return the countryName DirectoryString

public DERUTF8String
getCountryName()

Deprecated use getCountry()
public static SignerLocation
public DirectoryString

Returns:

the localityName, null if absent.
getLocality
()

Return the localityName DirectoryString

public DERUTF8String
getLocalityName()

Deprecated use getLocality()
public DirectoryString[]

Returns:

the postalAddress, null if absent.
getPostal
()

Return the postalAddress DirectoryStrings

public ASN1Sequence
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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..
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

countryNameback to summary
private DirectoryString countryName
localityNameback to summary
private DirectoryString localityName
postalAddressback to summary
private ASN1Sequence postalAddress

Constructor Detail

SignerLocationback to summary
private SignerLocation(ASN1Sequence seq)
SignerLocationback to summary
private SignerLocation(DirectoryString countryName, DirectoryString localityName, ASN1Sequence postalAddress)
SignerLocationback to summary
public SignerLocation(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress)
SignerLocationback to summary
public SignerLocation(ASN1UTF8String countryName, ASN1UTF8String localityName, ASN1Sequence postalAddress)

Method Detail

getCountryback to summary
public DirectoryString getCountry()

Return the countryName DirectoryString

Returns:DirectoryString

the countryName, null if absent.

getCountryNameback to summary
public DERUTF8String getCountryName()

Deprecated

use getCountry()

getInstanceback to summary
public static SignerLocation getInstance(Object obj)
getLocalityback to summary
public DirectoryString getLocality()

Return the localityName DirectoryString

Returns:DirectoryString

the localityName, null if absent.

getLocalityNameback to summary
public DERUTF8String getLocalityName()

Deprecated

use getLocality()

getPostalback to summary
public DirectoryString[] getPostal()

Return the postalAddress DirectoryStrings

Returns:DirectoryString[]

the postalAddress, null if absent.

getPostalAddressback to summary
public ASN1Sequence getPostalAddress()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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)) }
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.