public class Officials extends V3Extension
Officials extension as
used for characterizing public authorities in Austrian E-Government. In this
context this extension is called "Organwaltereigenschaft" (see http://reference.e-government.gv.at,
Spezifikationen/Konventionen).
The Officials extension is a private X509v3 extension which
may authorize the Austrian citizen card certificate owner to file a petition
on behalf of someone other. This extension shall be marked as being not critical.
The object identifier for the Officials 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-Officials OBJECT IDENTIFIER ::= { gv-at partyRepresentation(3) 4 }
which corresponds to the OID string "1.2.40.0.10.3.4".
The Officials extension must contain the administration indicator
(VKZ) of the authority or organization to which the officials ("Organwalter")
belongs to:
AdministrationIndicator ::= UTF8String
When creating a Officials
extension, specify the administration indicator as String object
(first you should register the Officials extension within the X509Extensions framework):
X509Extensions.register(Officials.oid, Officials.class); ... X509Certificate certificate = new X509Certificate(); ... String administrationIndicator = ... Officials officials = new Officials(administrationIndicator); certificate.addExtension(officials);
ObjectID,
X509Certificate,
X509Extensions| Modifier and Type | Field and Description |
|---|---|
protected UTF8String |
administrationIndicator_
The code that identifies the public authority.
|
static ObjectID |
oid
The object identifier of this
Officials extension. |
critical| Constructor and Description |
|---|
Officials()
Creates an empty
Officials extension. |
Officials(java.lang.String administrationIndicator)
Creates a new
Officials extension for the given
administration indicator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherObject)
Compares this object with the given one.
|
java.lang.String |
getAdministrationIndicator()
Gets the
administration indicator value of this Officials
extension. |
ObjectID |
getObjectID()
Returns the object ID of this
Officials extension. |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object asn1Object)
Inits this
Officials implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
Officials
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this extension.
|
getName, isCritical, setCriticalpublic static final ObjectID oid
Officials extension.
The corresponding OID string is "1.2.40.0.10.3.4".protected UTF8String administrationIndicator_
public Officials()
Officials extension.
This constructor is only used for dynamic object creation. Applications shall NOT
use this constructor, they shall use the Officials(String administrationIndicator_) constructor to create
an Officials extension with an administration indicator.
public Officials(java.lang.String administrationIndicator)
Officials extension for the given
administration indicator.
The administration indicator value will be encoded as UTF8String.
administrationIndicator - the administration indicator string of the authoritypublic ObjectID getObjectID()
Officials extension.getObjectID in class V3Extensionpublic void init(ASN1Object asn1Object) throws X509ExtensionException
Officials implementation with an ASN1Object
representing the value of this extension.
The given ASN1Object is 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
Officials 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 V3Extensionasn1Object - The Officials extension value as ASN1Object.X509ExtensionException - If the extension could not be parsedpublic ASN1Object toASN1Object()
Officials
extension object.toASN1Object in class V3ExtensionOfficials as ASN1Object.public java.lang.String getAdministrationIndicator()
administration indicator value of this Officials
extension.public int hashCode()
hashCode in class V3Extensionpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - The other object to compare with.public java.lang.String toString()
toString in class java.lang.Object