|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.uas.security.ProxyCertificate
public class ProxyCertificate
This class generates proxy certificates for use with Globus-based tools.
These are "legacy" proxies according to http://dev.globus.org/wiki/Security/ProxyCertTypes
(Originally from the UNICORE 5 proxy cert plugin. Modified for use with UNICORE 6)
| Field Summary | |
|---|---|
static java.lang.String |
BEGIN_CERT
|
static java.lang.String |
BEGIN_PRIVATE
|
static java.lang.String |
END_CERT
|
static java.lang.String |
END_PRIVATE
|
static java.lang.String |
PROXY_JKS_ALIAS
|
static java.lang.String |
PROXY_JKS_PASSWORD
|
static java.lang.String |
PROXY_SIGNATURE
property for defining the signature algorithm name default for RSA certs: SHA1WITHRSAENCRYPTION for DSA certs: SHA256WITHDSA |
| Method Summary | |
|---|---|
java.security.cert.Certificate[] |
getCertChain()
Returns the cert chain (proxy certificate and user certificate) |
static ProxyCertificate |
getInstance(IUASSecurityProperties sec,
boolean limited,
long lifeTime,
int keyLength)
Generate a new proxy certificate for each call. |
int |
getKeyLength()
Return the length of the public/private key pair |
java.lang.String |
getPEMEncoded()
|
java.security.PrivateKey |
getPrivateKey()
Returns the private unprotected key of the proxy certificate |
java.security.cert.X509Certificate |
getProxyCertificate()
Returns the proxy certifcate signed with the users private key |
java.security.PublicKey |
getPublicKey()
Returns the public key of the proxy certificate |
java.security.cert.X509Certificate |
getUserCertificate()
Returns the user certificate |
long |
getValidFrom()
Returns start time of the proxy certificate |
long |
getValidTo()
Returns end time of the proxy certificate |
boolean |
isLimited()
Is this a limited proxy? |
void |
writeJKS(java.lang.String fileName)
write to a JKS keystore (password is "unicore") |
void |
writePEM(java.io.Writer writer)
write the proxy to the given writer in OpenSSL compatible format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BEGIN_CERT
public static final java.lang.String END_CERT
public static final java.lang.String BEGIN_PRIVATE
public static final java.lang.String END_PRIVATE
public static final java.lang.String PROXY_JKS_PASSWORD
public static final java.lang.String PROXY_JKS_ALIAS
public static final java.lang.String PROXY_SIGNATURE
| Method Detail |
|---|
public java.security.cert.X509Certificate getProxyCertificate()
public java.security.PrivateKey getPrivateKey()
public java.security.PublicKey getPublicKey()
public java.security.cert.Certificate[] getCertChain()
public long getValidFrom()
public long getValidTo()
public java.security.cert.X509Certificate getUserCertificate()
public boolean isLimited()
public int getKeyLength()
public static ProxyCertificate getInstance(IUASSecurityProperties sec,
boolean limited,
long lifeTime,
int keyLength)
throws java.lang.Exception
limited - Generate a limited proxy ?lifeTime - Description of the ParameterkeyLength - Description of the Parameter
java.lang.Exception - Description of the Exception
public java.lang.String getPEMEncoded()
throws java.lang.Exception
java.lang.Exception
public void writePEM(java.io.Writer writer)
throws java.io.IOException
writer -
java.io.IOException
public void writeJKS(java.lang.String fileName)
throws java.io.IOException
fileName - - the filename of the keystore to write
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||