|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.security.utils.ProxyUtil
public class ProxyUtil
| Constructor Summary | |
|---|---|
ProxyUtil()
Constructor |
|
| Method Summary | |
|---|---|
static String |
getCA(org.gridforum.jgss.ExtendedGSSCredential credentials)
This method return the CA of credentials passed as parameter in the OSG format. |
static org.gridforum.jgss.ExtendedGSSCredential |
getCredentialsFromMyproxy(String myProxyHost,
int myProxyPort,
String username,
String password,
int hours)
This method allows to retrieve credentials from a myproxy repository. |
static String |
getDN(org.gridforum.jgss.ExtendedGSSCredential credentials)
This method return the DN of credentials passed as parameter in the OSG format. |
static String |
getDNOnlineRepresentation(String rfc2253Format)
|
static int |
getEndUserCertificateindex(X509Certificate[] certs)
This methods returns the certificate index belonging to the array having as issuer a certificate not present in the array |
static org.gridforum.jgss.ExtendedGSSCredential |
loadProxyCredentials(byte[] credentials)
Utility method to parse proxy credentials. |
static org.gridforum.jgss.ExtendedGSSCredential |
loadProxyCredentials(String fileName)
Utility method to load proxy credentials from a file. |
static X509Certificate[] |
orderChain(X509Certificate[] certs)
Starting from "endUserCertificate" (the certificate retreived with getRootCertificateindex) this method builds an array containing all descendants certificates. |
static org.gridforum.jgss.ExtendedGSSCredential |
orderCredentials(org.gridforum.jgss.ExtendedGSSCredential credentials)
Order the certificate chain according to the GSI Requirements |
static X509Certificate[] |
removeCACertificateFromArray(X509Certificate[] certs)
This methods remove the CA certificate from the certificate chain passed. |
static void |
storeProxyCredentials(String fileName,
org.gridforum.jgss.ExtendedGSSCredential credentials)
Utility method to store proxy credentials to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyUtil()
| Method Detail |
|---|
public static org.gridforum.jgss.ExtendedGSSCredential loadProxyCredentials(byte[] credentials)
throws GSSException
credentials - the byte array containing proxy credentials to load
GSSException - If an exception occurs parsing credentials
public static org.gridforum.jgss.ExtendedGSSCredential loadProxyCredentials(String fileName)
throws IOException,
GSSException
fileName - the absolute or relative path of file containing proxy
credentials to load
IOException - if an exeption occurs loading credentials from file
GSSException - If an exception occurs parsing credentials
public static void storeProxyCredentials(String fileName,
org.gridforum.jgss.ExtendedGSSCredential credentials)
throws GSSException,
IOException
fileName - the absolute or relative path of file where to store proxy
credentialscredentials - Credentials to be stored on file
IOException - if an exeption occurs storing credentials to file
GSSException - If an exception occurs extracting credentials
public static org.gridforum.jgss.ExtendedGSSCredential getCredentialsFromMyproxy(String myProxyHost,
int myProxyPort,
String username,
String password,
int hours)
throws org.globus.myproxy.MyProxyException
myProxyHost - host of the myproxy repositorymyProxyPort - port of the myproxy repositoryusername - username of the account to usepassword - password of the account to usehours - lifetime of delegated credentials in hours
org.globus.myproxy.MyProxyException - if credentials cannot be retrieved
public static String getDN(org.gridforum.jgss.ExtendedGSSCredential credentials)
throws Exception
Exception - if the DN cannot be retrieved
public static String getCA(org.gridforum.jgss.ExtendedGSSCredential credentials)
throws Exception
Exception - if the CA cannot be retrievedpublic static int getEndUserCertificateindex(X509Certificate[] certs)
certs - the certificate chain to searchpublic static X509Certificate[] removeCACertificateFromArray(X509Certificate[] certs)
certs - the certificate chain to search
public static X509Certificate[] orderChain(X509Certificate[] certs)
throws Exception
certs - the certificate chain to order
Exception
public static org.gridforum.jgss.ExtendedGSSCredential orderCredentials(org.gridforum.jgss.ExtendedGSSCredential credentials)
throws Exception
Exceptionpublic static String getDNOnlineRepresentation(String rfc2253Format)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||