public class ProxyHelper extends Object
Constructor and Description |
---|
ProxyHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getLastCN(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. if its last CN is equal to 'limited proxy'
(in case of legacy proxies) or if the special limited proxy policy is used.
|
public static ExtendedProxyType getProxyType(X509Certificate certificate)
certificate
- to be checkedpublic static String getLastCN(X500Principal principal) throws IllegalArgumentException
IllegalArgumentException
public static String getLastCN(X500Name x500Name) throws IllegalArgumentException
IllegalArgumentException
public 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-2017 European Middleware Initiative. All Rights Reserved.