Package org.bouncycastle.asn1.esf
Class SignerLocation
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.esf.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
ConstructorDescriptionSignerLocation
(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
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x500.DirectoryString
Return the countryName DirectoryStringorg.bouncycastle.asn1.DERUTF8String
Deprecated.use getCountry()static SignerLocation
getInstance
(Object obj) org.bouncycastle.asn1.x500.DirectoryString
Return the localityName DirectoryStringorg.bouncycastle.asn1.DERUTF8String
Deprecated.use getLocality()org.bouncycastle.asn1.x500.DirectoryString[]
Return the postalAddress DirectoryStringsorg.bouncycastle.asn1.ASN1Sequence
org.bouncycastle.asn1.ASN1Primitive
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
-
Constructor Details
-
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 Details
-
getInstance
-
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 interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-