public class ProxyHelper extends Object
| Constructor and Description |
|---|
ProxyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLastCN(org.bouncycastle.asn1.x500.X500Name x500Name) |
static String |
getLastCN(X500Principal principal) |
static int |
getProxyPathLimit(X509Certificate cert)
Returns the proxy path limit of the proxy.
|
static ExtendedProxyType |
getProxyType(X509Certificate certificate)
Checks if the certificate is a proxy and if so return its type.
|
static boolean |
isLimited(X509Certificate cert)
Checks if the certificate is a limited proxy in Globus sense, i.e.
|
public static ExtendedProxyType getProxyType(X509Certificate certificate)
certificate - to be checkedpublic static String getLastCN(X500Principal principal) throws IllegalArgumentException
IllegalArgumentExceptionpublic static String getLastCN(org.bouncycastle.asn1.x500.X500Name x500Name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static int getProxyPathLimit(X509Certificate cert) throws IOException
cert - certificateIOException - if the extension can not be parsedpublic static boolean isLimited(X509Certificate cert) throws IOException
cert - certificateIOException - IO exceptionCopyright © 2012–2018 European Middleware Initiative. All rights reserved.