public class ProcurationSyntax extends ASN1Object
ISIS-MTT PROFILE: The corresponding ProcurationSyntax contains either the name of the person who is represented (subcomponent thirdPerson) or a reference to his/her base certificate (in the component signingFor, subcomponent certRef), furthermore the optional components country and typeSubstitution to indicate the country whose laws apply, and respectively the type of procuration (e.g. manager, procuration, custody).
ISIS-MTT PROFILE: The GeneralName MUST be of type directoryName and MAY only contain: - RFC3039 attributes, except pseudonym (countryName, commonName, surname, givenName, serialNumber, organizationName, organizationalUnitName, stateOrProvincename, localityName, postalAddress) and - SubjectDirectoryName attributes (title, dateOfBirth, placeOfBirth, gender, countryOfCitizenship, countryOfResidence and NameAtBirth).
ProcurationSyntax ::= SEQUENCE { country [1] EXPLICIT PrintableString(SIZE(2)) OPTIONAL, typeOfSubstitution [2] EXPLICIT DirectoryString (SIZE(1..128)) OPTIONAL, signingFor [3] EXPLICIT SigningFor } SigningFor ::= CHOICE { thirdPerson GeneralName, certRef IssuerSerial }
Modifier and Type | Field and Description |
---|---|
private IssuerSerial |
certRef |
private java.lang.String |
country |
private GeneralName |
thirdPerson |
private DirectoryString |
typeOfSubstitution |
Modifier | Constructor and Description |
---|---|
private |
ProcurationSyntax(ASN1Sequence seq)
Constructor from ASN1Sequence.
|
|
ProcurationSyntax(java.lang.String country,
DirectoryString typeOfSubstitution,
GeneralName thirdPerson)
Constructor from a given details.
|
|
ProcurationSyntax(java.lang.String country,
DirectoryString typeOfSubstitution,
IssuerSerial certRef)
Constructor from a given details.
|
Modifier and Type | Method and Description |
---|---|
IssuerSerial |
getCertRef() |
java.lang.String |
getCountry() |
static ProcurationSyntax |
getInstance(java.lang.Object obj) |
GeneralName |
getThirdPerson() |
DirectoryString |
getTypeOfSubstitution() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private java.lang.String country
private DirectoryString typeOfSubstitution
private GeneralName thirdPerson
private IssuerSerial certRef
private ProcurationSyntax(ASN1Sequence seq)
The sequence is of type ProcurationSyntax:
ProcurationSyntax ::= SEQUENCE { country [1] EXPLICIT PrintableString(SIZE(2)) OPTIONAL, typeOfSubstitution [2] EXPLICIT DirectoryString (SIZE(1..128)) OPTIONAL, signingFor [3] EXPLICIT SigningFor } SigningFor ::= CHOICE { thirdPerson GeneralName, certRef IssuerSerial }
seq
- The ASN.1 sequence.public ProcurationSyntax(java.lang.String country, DirectoryString typeOfSubstitution, IssuerSerial certRef)
Either generalName
or certRef
MUST be
null
.
country
- The country code whose laws apply.typeOfSubstitution
- The type of procuration.certRef
- Reference to certificate of the person who is represented.public ProcurationSyntax(java.lang.String country, DirectoryString typeOfSubstitution, GeneralName thirdPerson)
Either generalName
or certRef
MUST be
null
.
country
- The country code whose laws apply.typeOfSubstitution
- The type of procuration.thirdPerson
- The GeneralName of the person who is represented.public static ProcurationSyntax getInstance(java.lang.Object obj)
public java.lang.String getCountry()
public DirectoryString getTypeOfSubstitution()
public GeneralName getThirdPerson()
public IssuerSerial getCertRef()
public ASN1Primitive toASN1Primitive()
Returns:
ProcurationSyntax ::= SEQUENCE { country [1] EXPLICIT PrintableString(SIZE(2)) OPTIONAL, typeOfSubstitution [2] EXPLICIT DirectoryString (SIZE(1..128)) OPTIONAL, signingFor [3] EXPLICIT SigningFor } SigningFor ::= CHOICE { thirdPerson GeneralName, certRef IssuerSerial }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object