|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
Deprecated. Only works with Globus legacy proxies. |
static COM.claymoresystems.cert.X509Name |
getX509Name(String globusID)
Converts Globus formatted string into a X509Name object. |
static String |
toGlobusID(COM.claymoresystems.sslg.DistinguishedName subject)
Returns the Globus formatted representation of the subject DN of the specified DN. |
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 object
GeneralSecurityException
- if conversion fails.public static COM.claymoresystems.cert.X509Name getX509Name(String globusID) throws Exception
globusID
- Globus-formatted subject to convert.
Exception
- 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.
certs
array was null.
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 certificate
Exception
- if something goes wrong.public static String toGlobusID(COM.claymoresystems.sslg.DistinguishedName subject)
subject
- the DN
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |