public class ProxyUtils extends Object
Constructor and Description |
---|
ProxyUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isProxy(X509Certificate certificate)
certificate
- the certificate to checkpublic static boolean isProxy(X509Certificate[] certificate)
certificate
- the chain to checkpublic static X509Certificate getEndUserCertificate(X509Certificate[] certificateChain)
certificateChain
- chain to find EECpublic static X500Principal getOriginalUserDN(X509Certificate[] certificateChain) throws IllegalArgumentException
certificateChain
- chain to be checkedIllegalArgumentException
- if the argument chain contains
only proxy certificatesCopyright © 2012-2017 European Middleware Initiative. All Rights Reserved.