|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.proxy.ProxyChainInfo
public class ProxyChainInfo
A class to get the proxy information from the whole proxy cert chain.
Constructor Summary | |
---|---|
ProxyChainInfo(java.security.cert.X509Certificate[] chain)
Generates new instance of this class using the certificate chain as the source of the data. |
Method Summary | |
---|---|
int |
getProxyPathLimit()
Returns the proxy path length limit left of this chain. |
byte[][][] |
getProxySourceRestrictions()
Gets the proxy source restriction data from the chain. |
byte[][][] |
getProxyTargetRestrictions()
Gets the proxy target restriction data from the chain. |
java.lang.String[] |
getProxyTracingIssuers()
Returns an array of URLs of the proxy tracing issuers in the chain non-traced proxies will have null in the array. |
java.lang.String[] |
getProxyTracingSubjects()
Returns an array of URLs of the proxy tracing subjects in the chain non-traced proxies will have null in the array. |
int |
getProxyType()
Analyzes the certificate chain and deducts what type of proxy this certificate chain is. |
java.lang.String[] |
getSAMLExtensions()
Returns the SAML extensions from the certificate chain. |
boolean |
isLimited()
Used to check whether the proxy chain is limited proxy or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyChainInfo(java.security.cert.X509Certificate[] chain)
chain
- The proxy chain to parse and analyze.Method Detail |
---|
public int getProxyType() throws java.security.cert.CertificateException
java.security.cert.CertificateException
- In case several kinds of proxies were present.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 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[] getProxyTracingIssuers() throws java.io.IOException
java.io.IOException
- Thrown in case the parsing of the information failed.public java.lang.String[] getProxyTracingSubjects() throws java.io.IOException
java.io.IOException
- Thrown in case the parsing of the information failed.public java.lang.String[] getSAMLExtensions() throws java.io.IOException
java.io.IOException
- In case there is a problem parsing the certificates.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 byte[][][] getProxySourceRestrictions() throws java.io.IOException
java.io.IOException
- thrown if the certificate parsing fails.public byte[][][] 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 |