|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.security.authn.x509.proxy.ProxyChainInfo
public class ProxyChainInfo
A class to get an information from a proxy certificate chain.
| Constructor Summary | |
|---|---|
ProxyChainInfo(X509Certificate[] chain)
Generates new instance of this class using the certificate chain as the source of the data. |
|
| Method Summary | |
|---|---|
static byte[][] |
concatArrays(byte[][] first,
byte[][] second)
Concatenates two arrays of arrays bytes. |
AttributeCertificate[][] |
getAttributeCertificateExtensions()
Returns the Attribute Certificate extensions from the certificate chain. |
int |
getFirstProxyPosition()
|
ProxyPolicy[] |
getPolicy()
Gets the array of RFC proxy extension policy OID and octets of the policy. |
byte[][][] |
getProxySourceRestrictions()
Gets the proxy source restriction data from the chain. |
byte[][][] |
getProxyTargetRestrictions()
Gets the proxy target restriction data from the chain. |
String[] |
getProxyTracingIssuers()
Returns an array of URLs of the proxy tracing issuers in the chain. |
String[] |
getProxyTracingSubjects()
Returns an array of URLs of the proxy tracing subjects in the chain. |
ProxyChainType |
getProxyType()
The type of the proxy chain chain is returned. |
int |
getRemainingPathLimit()
Returns the remaining path length of this chain. |
String[] |
getSAMLExtensions()
Returns the SAML extensions from the certificate chain. |
BigInteger[] |
getSerialNumbers()
|
boolean |
isHostAllowedAsSource(byte[] ipAddress)
Checks if the given IP address is allowed as this proxy chain source. |
boolean |
isHostAllowedAsTarget(byte[] ipAddress)
Checks if the given IP address is allowed as this proxy chain target. |
boolean |
isLimited()
Used to check whether the proxy chain is limited or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyChainInfo(X509Certificate[] chain)
throws CertificateException
chain - chain with at least one proxy certificate
CertificateException - if there is no proxy certificate in the chain or
if the chain is inconsistent, i.e. after proxy there is a non-proxy certificate.| Method Detail |
|---|
public BigInteger[] getSerialNumbers()
public ProxyChainType getProxyType()
throws CertificateException
CertificateExceptionpublic int getFirstProxyPosition()
public boolean isLimited()
throws CertificateException,
IOException
CertificateException
IOException
public ProxyPolicy[] getPolicy()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public String[] getProxyTracingIssuers()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public String[] getProxyTracingSubjects()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public String[] getSAMLExtensions()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public AttributeCertificate[][] getAttributeCertificateExtensions()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public int getRemainingPathLimit()
throws IOException
Notice: negative value means that the chain is invalid as it has passed the limit of delegations. Integer.MAX_INT is returned if there is no path length limit set on the chain.
IOException - Thrown in case the parsing of the information failed.
public byte[][][] getProxySourceRestrictions()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public byte[][][] getProxyTargetRestrictions()
throws IOException
IOException - Thrown in case the parsing of the information failed.
public boolean isHostAllowedAsSource(byte[] ipAddress)
throws IOException
ipAddress - host IPv4 address in 4 elements array
IOException - Thrown in case the parsing of the information failed.
public boolean isHostAllowedAsTarget(byte[] ipAddress)
throws IOException
ipAddress - host IPv4 address in 4 elements array
IOException - Thrown in case the parsing of the information failed.
public static byte[][] concatArrays(byte[][] first,
byte[][] second)
first - The array of arrays to begin with.second - The array of arrays to end with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||