public class MandateIssuer extends V3Extension
MandateIssuer
Extension as
used in Austrian E-Government for certificates that are authorized to
issue electronic mandates.
In this context this extension is called "Eigenschaft zur Signatur von
elektronischen Vollmachten" (see http://reference.e-government.gv.at,
Spezifikationen/Konventionen).
The MandateIssuer
extension is a private X509v3 extension, which
shall be used in mandate issuer certificates in Austrian E-Government. It shall
be marked as being not critical.
The object identifier for the MandateIssuer
extension
is derived from the gv-at OID as used for the Austria adminstration:
gv-at ::= OBJECT IDENTIFIER ::= { iso(1) member-body(2) austria(40) (0) (10) }
id-mandateIssuer OBJECT IDENTIFIER ::= { gv-at organization(1) sourcePINRegisterAuthority (7) 2 }
which corresponds to the OID string "1.2.40.0.10.1.7.2".
The ASN.1 definition of the MandateIssuer
extension is specified
as follows:
MandateIssuer ::= CHOICE { isMandateIssuer alwaysTrue, isNull NULL } alwaysTrue BOOLEAN ::= TRUEThe
alwaysTrue
choice is only included for backwards compatibility
to former versions of the MandateIssuer
extension. Newly
issued certificates must use the isNull
option.
Since the MandateIssuer extension has no specific value (only is presence
in a certificate is sufficient to recognize the certificate as authorized to issue
electronic mandates) a MandateIssuer extension can be created by simply
calling the default
constructor (first you should register
the MandateIssuer extension within the X509Extensions framework):
X509Extensions.register(MandateIssuer.oid, MandateIssuer.class); ... X509Certificate certificate = new X509Certificate(); ... MandateIssuer mandateIssuer = new MandateIssuer(); certificate.addExtension(mandateIssuer);Use method
getExtension
for getting
a MandateIssuer extension when parsing a certificate:
X509Certificate cert = ...; ... // look if MandateIssuer extension is included: MandateIssuer mandateIssuer = cert.getExtension(MandateIssuer.oid); if (mandateIssuer != null) { ... }
ObjectID
,
X509Certificate
,
X509Extensions
,
V3Extension
Modifier and Type | Field and Description |
---|---|
static ObjectID |
oid
The object identifier of this
MandateIssuer extension. |
critical
Constructor and Description |
---|
MandateIssuer()
Creates a new
MandateIssuer extension. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject)
Compares this object with the given one.
|
ObjectID |
getObjectID()
Returns the object ID of this
MandateIssuer extension. |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object asn1Object)
Inits this
MandateIssuer implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
MandateIssuer
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this extension.
|
getName, isCritical, setCritical
public static final ObjectID oid
MandateIssuer
extension.
The corresponding OID string is "1.2.40.0.10.1.7.2".public ObjectID getObjectID()
MandateIssuer
extension.getObjectID
in class V3Extension
public void init(ASN1Object asn1Object) throws X509ExtensionException
MandateIssuer
implementation with an ASN1Object
representing the value of this extension.
The given ASN1Object may be the one created by toASN1Object()
.
This method is used by the X509Extensions
class when parsing the ASN.1 representation
of a certificate for properly initializing an included
MandateIssuer extension. This method initializes the
extension only with its value, but not with its critical
specification. For that reason, this method shall not be
explicitly called by an application.
init
in class V3Extension
asn1Object
- The MandateIssuer extension value as ASN1Object (NULL or BOOLEAN (deprecated)).X509ExtensionException
- If the extension value is not an ASN.1 NULL objectpublic ASN1Object toASN1Object()
MandateIssuer
extension object.
The returned ASN1Object is either an ASN.1 NULL object or (for deprecated extensions) an ASN.1 BOOLEAN:
MandateIssuer ::= CHOICE { isMandateIssuer alwaysTrue, isNull NULL }
toASN1Object
in class V3Extension
MandateIssuer
as ASN1Object (NULL).public int hashCode()
hashCode
in class V3Extension
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare with.public java.lang.String toString()
toString
in class java.lang.Object