|
||||||||||
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 digging up info from the proxy.
Field Summary | |
---|---|
static int |
CA_CERT
Used to identify RFC3820 type proxies. |
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 |
UNDEFINED_TYPE
Used to point that there hasn't been a try to determine proxy type |
static int |
UNKNOWN_PROXY_TYPE
Used to identify unknown proxy type, for example user cert. |
static int |
USER_CERT
Used to identify RFC3820 type proxies. |
Constructor Summary | |
---|---|
ProxyCertificateInfo(java.security.cert.X509Certificate x509Cert)
Generates a certificate object from the x509 data structure. |
Method Summary | |
---|---|
org.bouncycastle.asn1.ASN1OctetString |
getPolicyASN1()
Get the optional policy in ASN1 structure. |
ProxyCertInfoExtension |
getProxyCertInfoExtension()
Used to get the RFC3820 (or draft RFC) CertificateInfoExtension information. |
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. |
ProxyRestrictionData |
getProxySourceRestrictions()
Gets the proxy source restriction data. |
ProxyRestrictionData |
getProxyTargetRestrictions()
Gets the proxy target restriction data. |
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. |
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 CA_CERT
public static final int USER_CERT
public static final int UNKNOWN_PROXY_TYPE
public static final int UNDEFINED_TYPE
Constructor Detail |
---|
public ProxyCertificateInfo(java.security.cert.X509Certificate x509Cert)
x509Cert
- The proxy to analyze.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 is RFC3820 proxy and the information parsing fails.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 ProxyCertInfoExtension getProxyCertInfoExtension() throws java.security.cert.CertificateException, java.io.IOException
java.security.cert.CertificateException
- Thrown in case the certificate is not a RFC 3820 proxy nor a draft RFC proxy, or the
mandatory extension is missing.
java.io.IOException
- Thrown in case the certificate parsing fails.public int getProxyPathLimit() throws java.security.cert.CertificateException, java.io.IOException
java.security.cert.CertificateException
- thrown if the proxy is not rfc3820 nor RFC draft type proxy, or in case the
mandatory ProxyCertInfoExtension is not found in the certificate.
java.io.IOException
- Thrown in case the certificate 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, or in case the mandatory
ProxyCertInfoExtension is not found in the certificate.
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, or in case the mandatory
ProxyCertInfoExtension is not found in the certificate.
java.io.IOException
- In case there is a parsing problem.public ProxyRestrictionData getProxySourceRestrictions() throws java.io.IOException
java.io.IOException
- thrown if the certificate parsing fails.public ProxyRestrictionData getProxyTargetRestrictions() throws java.io.IOException
java.io.IOException
- thrown if the certificate parsing fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |