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
Constructors Constructor Description SignerLocation(org.bouncycastle.asn1.DERUTF8String countryName, org.bouncycastle.asn1.DERUTF8String 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 DirectoryStringorg.bouncycastle.asn1.DERUTF8String
getCountryName()
Deprecated.use getCountry()static SignerLocation
getInstance(Object obj)
org.bouncycastle.asn1.x500.DirectoryString
getLocality()
Return the localityName DirectoryStringorg.bouncycastle.asn1.DERUTF8String
getLocalityName()
Deprecated.use getLocality()org.bouncycastle.asn1.x500.DirectoryString[]
getPostal()
Return the postalAddress DirectoryStringsorg.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..
-
-
-
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.DERUTF8String countryName, org.bouncycastle.asn1.DERUTF8String localityName, org.bouncycastle.asn1.ASN1Sequence postalAddress)
-
-
Method Detail
-
getInstance
public static SignerLocation getInstance(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 interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
-