public class ProxyTracingExtension extends ASN1Object
iGTFProxyTracingIssuerName ::= GeneralNames iGTFProxyTracingSubjectName ::= GeneralNames GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName GeneralName ::= CHOICE { otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER} OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id } EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString } DirectoryString ::= CHOICE { teletexString TeletexString (SIZE (1..maxSize), printableString PrintableString (SIZE (1..maxSize)), universalString UniversalString (SIZE (1..maxSize)), bmpString BMPString (SIZE(1..maxSIZE)) }
Modifier and Type | Field and Description |
---|---|
static int |
ISSUER_EXTENSION
The OID to identify issuer proxy tracing type.
|
static String |
PROXY_TRACING_ISSUER_EXTENSION_OID
The OID to identify issuer proxy tracing extension.
|
static String |
PROXY_TRACING_SUBJECT_EXTENSION_OID
The OID to identify subject proxy tracing extension.
|
static int |
SUBJECT_EXTENSION
The OID to identify issuer proxy tracing type.
|
Constructor and Description |
---|
ProxyTracingExtension(byte[] bytes)
Parses the information in the byte array (GeneralNames ASN1 sequence
of GeneralName) into a proxy tracing extension object.
|
ProxyTracingExtension(String url)
Generates a new proxy tracing item from the URL.
|
Modifier and Type | Method and Description |
---|---|
static ProxyTracingExtension |
getInstance(X509Certificate cert,
boolean issuer)
Returns the URL of the proxy tracing issuer if present.
|
GeneralNames |
getNames()
Returns the general names structure that holds the trace information.
|
String |
getURL()
Returns the URL inside the proxy tracing data structure.
|
ASN1Primitive |
toASN1Primitive() |
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public static final String PROXY_TRACING_ISSUER_EXTENSION_OID
public static final String PROXY_TRACING_SUBJECT_EXTENSION_OID
public static final int ISSUER_EXTENSION
public static final int SUBJECT_EXTENSION
public ProxyTracingExtension(String url)
url
- The URL to identify the issuer or the subject.public ProxyTracingExtension(byte[] bytes) throws IOException
bytes
- The bytes of ASN1 encoded proxy tracing extension.IOException
- In case the byte array does not contain a valid ASN1
encoded proxy tracing extension.public static ProxyTracingExtension getInstance(X509Certificate cert, boolean issuer) throws IOException
cert
- certificateissuer
- issuerIOException
- Thrown in case the parsing of the information failed.public String getURL()
public GeneralNames getNames()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.