public class ProxyChainInfo extends Object
| Constructor and Description |
|---|
ProxyChainInfo(X509Certificate[] chain)
Generates new instance of this class using the certificate chain as the source
of the data.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ProxyChainInfo(X509Certificate[] chain) throws CertificateException
chain - chain with at least one proxy certificateCertificateException - 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.public BigInteger[] getSerialNumbers()
public ProxyChainType getProxyType() throws CertificateException
CertificateExceptionpublic int getFirstProxyPosition()
public boolean isLimited()
throws CertificateException,
IOException
CertificateExceptionIOExceptionpublic 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 arrayIOException - Thrown in case the parsing of the information failed.public boolean isHostAllowedAsTarget(byte[] ipAddress)
throws IOException
ipAddress - host IPv4 address in 4 elements arrayIOException - 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.Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.