|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.security.authn.x509.proxy.ProxyUtils
public class ProxyUtils
Utility methods for checking properties of proxy certificates.
| Constructor Summary | |
|---|---|
ProxyUtils()
|
|
| Method Summary | |
|---|---|
static X509Certificate |
getEndUserCertificate(X509Certificate[] certificateChain)
Extracts the first EEC from the chain. |
static X500Principal |
getOriginalUserDN(X509Certificate[] certificateChain)
Tries to establish the DN of the user who issued the first proxy which is found in the provided chain. |
static boolean |
isProxy(X509Certificate certificate)
Checks whether the certificate is a proxy. |
static boolean |
isProxy(X509Certificate[] certificate)
Checks whether the chain contains at least one proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyUtils()
| Method Detail |
|---|
public static boolean isProxy(X509Certificate certificate)
certificate - the certificate to check
public static boolean isProxy(X509Certificate[] certificate)
certificate - the chain to check
public static X509Certificate getEndUserCertificate(X509Certificate[] certificateChain)
certificateChain - chain to find EEC
public static X500Principal getOriginalUserDN(X509Certificate[] certificateChain)
throws IllegalArgumentException
certificateChain - chain to be checked
IllegalArgumentException - if the argument chain contains
only proxy certificates
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||