public class ProxyHelper
extends java.lang.Object
| Constructor and Description |
|---|
ProxyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getLastCN(org.bouncycastle.asn1.x500.X500Name x500Name) |
static java.lang.String |
getLastCN(javax.security.auth.x500.X500Principal principal) |
static int |
getProxyPathLimit(java.security.cert.X509Certificate cert)
Returns the proxy path limit of the proxy.
|
static ExtendedProxyType |
getProxyType(java.security.cert.X509Certificate certificate)
Checks if the certificate is a proxy and if so return its type.
|
static boolean |
isLimited(java.security.cert.X509Certificate cert)
Checks if the certificate is a limited proxy in Globus sense, i.e.
|
public static ExtendedProxyType getProxyType(java.security.cert.X509Certificate certificate)
certificate - to be checkedpublic static java.lang.String getLastCN(javax.security.auth.x500.X500Principal principal)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static java.lang.String getLastCN(org.bouncycastle.asn1.x500.X500Name x500Name)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static int getProxyPathLimit(java.security.cert.X509Certificate cert)
throws java.io.IOException
cert - certificatejava.io.IOException - if the extension can not be parsedpublic static boolean isLimited(java.security.cert.X509Certificate cert)
throws java.io.IOException
cert - certificatejava.io.IOException - IO exception