Package org.bouncycastle.asn1.esf
Class SignerLocation
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.esf.SignerLocation
- All Implemented Interfaces:
ASN1Encodable
,Encodable
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
ConstructorsConstructorDescriptionSignerLocation
(DERUTF8String countryName, DERUTF8String localityName, ASN1Sequence postalAddress) SignerLocation
(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress) -
Method Summary
Modifier and TypeMethodDescriptionReturn the countryName DirectoryStringDeprecated.use getCountry()static SignerLocation
getInstance
(Object obj) Return the localityName DirectoryStringDeprecated.use getLocality()Return the postalAddress DirectoryStringsSignerLocation ::= 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
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
SignerLocation
public SignerLocation(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress) -
SignerLocation
public SignerLocation(DERUTF8String countryName, DERUTF8String localityName, ASN1Sequence postalAddress)
-
-
Method Details
-
getInstance
-
getCountry
Return the countryName DirectoryString- Returns:
- the countryName, null if absent.
-
getLocality
Return the localityName DirectoryString- Returns:
- the localityName, null if absent.
-
getPostal
Return the postalAddress DirectoryStrings- Returns:
- the postalAddress, null if absent.
-
getCountryName
Deprecated.use getCountry() -
getLocalityName
Deprecated.use getLocality() -
getPostalAddress
-
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 interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-