|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.x509.X509V3CertificateGenerator
org.glite.security.util.proxy.RFC3820ProxyCertificateGenerator
public class RFC3820ProxyCertificateGenerator
A generator for RFC 3820 type certificates.
Constructor Summary | |
---|---|
RFC3820ProxyCertificateGenerator()
|
Method Summary | |
---|---|
java.security.cert.X509Certificate |
generate(java.security.PrivateKey privateKey)
|
void |
setBaseName(org.bouncycastle.asn1.x509.X509Name basename)
Sets the base name for the subject DN generation. |
void |
setPathLenLimit(int pathLenLimit)
Set the path length limit, the number of length of proxy cert chain this proxy is allowed so sign. |
void |
setPolicyOID(java.lang.String policyOID)
Sets the policy oid. |
void |
setProxyCertInfo(java.lang.String policyOID,
org.bouncycastle.asn1.DEROctetString policy,
int pathLenLimit)
Sets the proxy certificate info extension. |
void |
setSerialNumber(java.math.BigInteger sn)
|
void |
setSubjectDN(javax.security.auth.x500.X500Principal dnPrincipal)
|
void |
setSubjectDN(org.bouncycastle.asn1.x509.X509Name dn)
|
Methods inherited from class org.bouncycastle.x509.X509V3CertificateGenerator |
---|
addExtension, addExtension, addExtension, addExtension, copyAndAddExtension, copyAndAddExtension, generate, generate, generate, generateX509Certificate, generateX509Certificate, generateX509Certificate, generateX509Certificate, getSignatureAlgNames, reset, setIssuerDN, setIssuerDN, setIssuerUniqueID, setNotAfter, setNotBefore, setPublicKey, setSignatureAlgorithm, setSubjectUniqueID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RFC3820ProxyCertificateGenerator()
Method Detail |
---|
public void setSerialNumber(java.math.BigInteger sn)
setSerialNumber
in class org.bouncycastle.x509.X509V3CertificateGenerator
public void setProxyCertInfo(java.lang.String policyOID, org.bouncycastle.asn1.DEROctetString policy, int pathLenLimit)
policyOID
- optional proxy policy oid, if not given, the
"delegate all policy" oid is used.policy
- optional proxy policy. If no policy is given the oid is
assumed to suffice.pathLenLimit
- optional number of subproxies the proxy can have. If null, no
restrictions are set.public void setPathLenLimit(int pathLenLimit)
pathLenLimit
- the number of proxies that can follow this in the cert chain.public void setPolicyOID(java.lang.String policyOID)
policyOID
- The oid of the policy to be used.public void setSubjectDN(javax.security.auth.x500.X500Principal dnPrincipal)
setSubjectDN
in class org.bouncycastle.x509.X509V3CertificateGenerator
public void setSubjectDN(org.bouncycastle.asn1.x509.X509Name dn)
setSubjectDN
in class org.bouncycastle.x509.X509V3CertificateGenerator
public void setBaseName(org.bouncycastle.asn1.x509.X509Name basename)
basename
- public java.security.cert.X509Certificate generate(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException, java.security.SignatureException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateEncodingException
generate
in class org.bouncycastle.x509.X509V3CertificateGenerator
java.security.InvalidKeyException
java.security.SignatureException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |