Class ProcurationSyntax
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
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 }
-
Constructor Summary
ConstructorDescriptionProcurationSyntax
(String country, org.bouncycastle.asn1.x500.DirectoryString typeOfSubstitution, org.bouncycastle.asn1.x509.GeneralName thirdPerson) Constructor from a given details.ProcurationSyntax
(String country, org.bouncycastle.asn1.x500.DirectoryString typeOfSubstitution, org.bouncycastle.asn1.x509.IssuerSerial certRef) Constructor from a given details. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.IssuerSerial
static ProcurationSyntax
getInstance
(Object obj) org.bouncycastle.asn1.x509.GeneralName
org.bouncycastle.asn1.x500.DirectoryString
org.bouncycastle.asn1.ASN1Primitive
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ProcurationSyntax
public ProcurationSyntax(String country, org.bouncycastle.asn1.x500.DirectoryString typeOfSubstitution, org.bouncycastle.asn1.x509.IssuerSerial certRef) Constructor from a given details.Either
generalName
orcertRef
MUST benull
.- Parameters:
country
- The country code whose laws apply.typeOfSubstitution
- The type of procuration.certRef
- Reference to certificate of the person who is represented.
-
ProcurationSyntax
public ProcurationSyntax(String country, org.bouncycastle.asn1.x500.DirectoryString typeOfSubstitution, org.bouncycastle.asn1.x509.GeneralName thirdPerson) Constructor from a given details.Either
generalName
orcertRef
MUST benull
.- Parameters:
country
- The country code whose laws apply.typeOfSubstitution
- The type of procuration.thirdPerson
- The GeneralName of the person who is represented.
-
-
Method Details
-
getInstance
-
getCountry
-
getTypeOfSubstitution
public org.bouncycastle.asn1.x500.DirectoryString getTypeOfSubstitution() -
getThirdPerson
public org.bouncycastle.asn1.x509.GeneralName getThirdPerson() -
getCertRef
public org.bouncycastle.asn1.x509.IssuerSerial getCertRef() -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Produce an object suitable for an ASN1OutputStream.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 }
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a DERObject
-