public class IdentityLinkIssuer extends V3Extension
IdentityLinkIssuer
Extension as
used in Austrian E-Government for certificates that are authorized to
issue identity links.
In this context this extension is called "Eigenschaft zur Ausstellung von
Personenbindungen" (see http://reference.e-government.gv.at,
Spezifikationen/Konventionen).
The IdentityLinkIssuer
extension is a private X509v3 extension, which
shall be used in identity link issuer certificates in Austrian E-Government. It shall
be marked as being not critical.
The object identifier for the IdentityLinkIssuer
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-identityLinkIssuer OBJECT IDENTIFIER ::= { gv-at organization(1) sourcePINRegisterAuthority (7) 1 }
which corresponds to the OID string "1.2.40.0.10.1.7.1".
The ASN.1 definition of the IdentityLinkIssuer
extension is specified
as follows:
IdentityLinkIssuer ::= CHOICE { isIdentityLinkIssuer alwaysTrue, isNull NULL } alwaysTrue BOOLEAN ::= TRUEThe
alwaysTrue
choice is only included for backwards compatibility
to former versions of the IdentityLinkIssuer
extension. Newly
issued certificates must use the isNull
option.
Since the IdentityLinkIssuer extension has no specific value (only is presence
in a certificate is sufficient to recognize the certificate as authorized to issue
identity links) an IdentityLinkIssuer extension can be created by simply
calling the default
constructor (first you should register
the MandateIssuer extension within the X509Extensions framework):
X509Extensions.register(IdentityLinkIssuer.oid, IdentityLinkIssuer.class); ...X509Certificate certificate = new X509Certificate(); ... IdentityLinkIssuer identityLinkIssuer = new IdentityLinkIssuer(); certificate.addExtension(identityLinkIssuer);Use methodgetExtension
for getting a IdentityLinkIssuer extension when parsing a certificate:X509Certificate cert = ...; ... // look if IdentityLinkIssuer extension is included: IdentityLinkIssuer identityLinkIssuer = cert.getExtension(IdentityLinkIssuer.oid); if (identityLinkIssuer != null) { ... }
ObjectID
,
X509Certificate
,
X509Extensions
,
V3Extension
Modifier and Type | Field and Description |
---|---|
static ObjectID |
oid
The object identifier of this
IdentityLinkIssuer extension. |
critical
Constructor and Description |
---|
IdentityLinkIssuer()
Creates a new
IdentityLinkIssuer 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
IdentityLinkIssuer extension. |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object asn1Object)
Inits this
IdentityLinkIssuer implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
IdentityLinkIssuer
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this extension.
|
getName, isCritical, setCritical
public static final ObjectID oid
IdentityLinkIssuer
extension.
The corresponding OID string is "1.2.40.0.10.1.7.1".public IdentityLinkIssuer()
IdentityLinkIssuer
extension.public ObjectID getObjectID()
IdentityLinkIssuer
extension.getObjectID
in class V3Extension
public void init(ASN1Object asn1Object) throws X509ExtensionException
IdentityLinkIssuer
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
IdentityLinkIssuer 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 IdentityLinkIssuer extension value as ASN1Object (NULL or BOOLEAN (deprecated)).X509ExtensionException
- If the extension value is not an ASN.1 NULL objectpublic ASN1Object toASN1Object()
IdentityLinkIssuer
extension object.
The returned ASN1Object is either an ASN.1 NULL object or (for deprecated extensions) an ASN.1 BOOLEAN:
IdentityLinkIssuer ::= CHOICE { isIdentityLinkIssuer alwaysTrue, isNull NULL }
toASN1Object
in class V3Extension
IdentityLinkIssuer
as ASN1Object (NULL or BOOLEAN).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