|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.globus.gsi.ptls.PureTLSUtil
A collection of utility functions for PureTLS library.
| Constructor Summary | |
PureTLSUtil()
|
|
| Method Summary | |
static X509Certificate[] |
certificateChainToArray(Vector chain)
Converts a Vector of X509Cert objects into a standard Java X509 certificate array (in the reverse order). |
static Vector |
certificateChainToVector(X509Certificate[] certs)
Converts standard Java X509 certificate array into a Vector of X509Cert objects (in the reverse order) |
static int |
checkProxyName(COM.claymoresystems.cert.X509Cert cert)
Deprecated. Only works for Globus legacy proxies. |
static X509Certificate |
convertCert(COM.claymoresystems.cert.X509Cert cert)
Converts PureTLS specific X509 certificate object into standard Java X509 certificate object (right now it is using BouncyCastle provider to convert). |
static COM.claymoresystems.cert.X509Name |
dupName(COM.claymoresystems.sslg.DistinguishedName name)
Replicates a X509Name object. |
static COM.claymoresystems.cert.X509Name |
getBase(COM.claymoresystems.sslg.DistinguishedName name)
Deprecated. Only works with Globus legacy proxies. |
static COM.claymoresystems.sslg.CertVerifyPolicyInt |
getDefaultCertVerifyPolicy()
Returns a default certificate checking policy. |
static String |
getGlobusId(byte[] cert)
Returns the Globus formatted representation of the subject DN of the specified certificate. |
static COM.claymoresystems.cert.X509Name |
getX509Name(String globusID)
Converts Globus formatted string into a X509Name object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PureTLSUtil()
| Method Detail |
public static X509Certificate convertCert(COM.claymoresystems.cert.X509Cert cert)
throws GeneralSecurityException
cert - PureTLS X509 certificate objectGeneralSecurityException - if conversion fails.
public static COM.claymoresystems.cert.X509Name getX509Name(String globusID)
throws Exception
Globus - formatted subject to convert.if - conversion fails.public static COM.claymoresystems.cert.X509Name getBase(COM.claymoresystems.sslg.DistinguishedName name)
public static int checkProxyName(COM.claymoresystems.cert.X509Cert cert)
public static COM.claymoresystems.cert.X509Name dupName(COM.claymoresystems.sslg.DistinguishedName name)
name - X509Name object to replicate.
public static Vector certificateChainToVector(X509Certificate[] certs)
throws GeneralSecurityException
certs - certificate array to convert.GeneralSecurityException - if conversion fails.
public static X509Certificate[] certificateChainToArray(Vector chain)
throws GeneralSecurityException
chain - the Vector of X509Cert objects to convert.GeneralSecurityException - if conversion fails.public static COM.claymoresystems.sslg.CertVerifyPolicyInt getDefaultCertVerifyPolicy()
ProxyPathValidator.
public static String getGlobusId(byte[] cert)
throws Exception
cert - the encoded certificateException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||