|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glite.security.util.proxy.ProxyCertificateInfo
public class ProxyCertificateInfo
A base class for diggin up info from the proxy.
| Field Summary | |
|---|---|
static int |
DRAFT_RFC_PROXY
Used to identify draft pre RFC3820 type proxies |
static int |
LEGACY_PROXY
Used to identify legacy globus toolkit 2 proxies |
static int |
RFC3820_PROXY
Used to identify RFC3820 type proxies |
static int |
UNKNOWN_PROXY_TYPE
Used to indicate that the proxy type was not recognized |
| Constructor Summary | |
|---|---|
ProxyCertificateInfo(java.security.cert.X509Certificate x509Cert)
Generates a certificate object from the x509 data structure. |
|
ProxyCertificateInfo(java.security.cert.X509Certificate[] inChain)
Generates a BasicProxyCertificate object from a X509Certificate. |
|
| Method Summary | |
|---|---|
org.bouncycastle.asn1.ASN1OctetString |
getPolicyASN1()
Get the optional policy in ASN1 structure. |
int |
getProxyPathLimit()
Returns the proxy path length limit of this certificate. |
java.lang.String |
getProxyPolicyOID()
Get the mandatory proxy policy OID from the mandatory proxyCertInfoExtension. |
java.lang.String |
getProxyTracingIssuer()
Returns the URL of the proxy tracing issuer if present. |
java.lang.String |
getProxyTracingSubject()
Returns the URL of the proxy tracing subject if present. |
int |
getProxyType()
Analyzes the certificate and deducts what type of proxy this certificate is. |
java.lang.String |
getSAMLExtension()
Returns the SAML extension form the certificate. |
static boolean |
isLegacyDN(org.bouncycastle.asn1.x509.X509Name subject)
Used to check whether a DN indicates a legacy proxy or not. |
boolean |
isLimited()
Used to check whether the proxy is limited proxy or not. |
boolean |
isTraced()
Check whether the proxy has tracing enabled or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEGACY_PROXY
public static final int DRAFT_RFC_PROXY
public static final int RFC3820_PROXY
public static final int UNKNOWN_PROXY_TYPE
| Constructor Detail |
|---|
public ProxyCertificateInfo(java.security.cert.X509Certificate x509Cert)
x509Cert - The proxy to analyze.public ProxyCertificateInfo(java.security.cert.X509Certificate[] inChain)
inChain - The certificate to generate this object from.
java.security.cert.CertificateParsingException - In case the certificate
transformation fails.
java.security.cert.CertificateEncodingException - In case the certificate
transformation fails.
java.io.IOException - In case the certificate transformation fails.| Method Detail |
|---|
public int getProxyType()
For globus toolkit 2 legacy proxy.,
For RFC3820 proxy (conformity unverified).,
For unrecognized proxy.,
For globus toolkit 3 and 4.0 draft pre RFC3820 type
proxy.public static boolean isLegacyDN(org.bouncycastle.asn1.x509.X509Name subject)
subject - The input DN used to check whether it indicates a legacy
proxy
public boolean isLimited()
throws java.security.cert.CertificateException,
java.io.IOException
java.security.cert.CertificateException - Thrown in case the proxy is of unknown
format or invalid.
java.io.IOException - Thrown in case the proxy if RFC3820 proxy and the
information parsing fails.public boolean isTraced()
public java.lang.String getProxyTracingIssuer()
throws java.io.IOException
java.io.IOException - Thrown in case the parsing of the information failed.
public java.lang.String getProxyTracingSubject()
throws java.io.IOException
java.io.IOException - Thrown in case the parsing of the information failed.
public java.lang.String getSAMLExtension()
throws java.io.IOException
java.io.IOException - In case there is a problem parsing the certificate.
public int getProxyPathLimit()
throws java.security.cert.CertificateException,
java.io.IOException
java.security.cert.CertificateException - thrown if the proxy is not rfc3820 or rfc
draft type proxy.
java.io.IOException - Thrown in case the mandatory ProxyCertInfoExtension
is not found in the certificate or if the parsing fails.
public java.lang.String getProxyPolicyOID()
throws java.security.cert.CertificateException,
java.io.IOException
java.security.cert.CertificateException - thrown if the proxy is not rfc3820 or rfc
draft type proxy.
java.io.IOException - In case there is a parsing problem.
public org.bouncycastle.asn1.ASN1OctetString getPolicyASN1()
throws java.security.cert.CertificateException,
java.io.IOException
java.security.cert.CertificateException - thrown if the proxy is not rfc3820 or rfc
draft type proxy.
java.io.IOException - In case there is a parsing problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||