Top Description Fields Constructors Methods
org.bouncycastle.asn1.isismtt.x509

public Class ProcurationSyntax

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1PrintableString, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERPrintableString, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x500.DirectoryString, org.bouncycastle.asn1.x509.GeneralName, .IssuerSerial

Attribute to indicate that the certificate holder may sign in the name of a third person.

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 
              }

Field Summary

Modifier and TypeField and Description
private IssuerSerial
private String
private GeneralName
private DirectoryString

Constructor Summary

AccessConstructor and Description
private
ProcurationSyntax(ASN1Sequence
The ASN.1 sequence.
seq
)

Constructor from ASN1Sequence.

public
ProcurationSyntax(String
The country code whose laws apply.
country
,
DirectoryString
The type of procuration.
typeOfSubstitution
,
IssuerSerial
Reference to certificate of the person who is represented.
certRef
)

Constructor from a given details.

public
ProcurationSyntax(String
The country code whose laws apply.
country
,
DirectoryString
The type of procuration.
typeOfSubstitution
,
GeneralName
The GeneralName of the person who is represented.
thirdPerson
)

Constructor from a given details.

Method Summary

Modifier and TypeMethod and Description
public IssuerSerial
public String
public static ProcurationSyntax
public GeneralName
public DirectoryString
public ASN1Primitive

Returns:

a DERObject
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certRefback to summary
private IssuerSerial certRef
countryback to summary
private String country
thirdPersonback to summary
private GeneralName thirdPerson
typeOfSubstitutionback to summary
private DirectoryString typeOfSubstitution

Constructor Detail

ProcurationSyntaxback to summary
private ProcurationSyntax(ASN1Sequence seq)

Constructor from ASN1Sequence.

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
              }

Parameters
seq:ASN1Sequence

The ASN.1 sequence.

ProcurationSyntaxback to summary
public ProcurationSyntax(String country, DirectoryString typeOfSubstitution, IssuerSerial certRef)

Constructor from a given details.

Either generalName or certRef MUST be null.

Parameters
country:String

The country code whose laws apply.

typeOfSubstitution:DirectoryString

The type of procuration.

certRef:IssuerSerial

Reference to certificate of the person who is represented.

ProcurationSyntaxback to summary
public ProcurationSyntax(String country, DirectoryString typeOfSubstitution, GeneralName thirdPerson)

Constructor from a given details.

Either generalName or certRef MUST be null.

Parameters
country:String

The country code whose laws apply.

typeOfSubstitution:DirectoryString

The type of procuration.

thirdPerson:GeneralName

The GeneralName of the person who is represented.

Method Detail

getCertRefback to summary
public IssuerSerial getCertRef()
getCountryback to summary
public String getCountry()
getInstanceback to summary
public static ProcurationSyntax getInstance(Object obj)
getThirdPersonback to summary
public GeneralName getThirdPerson()
getTypeOfSubstitutionback to summary
public DirectoryString getTypeOfSubstitution()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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
              }
Returns:ASN1Primitive

a DERObject