|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.group.certificates.GroupCertificateAuthority
A class that provides a certificate authority for a group. This class uses openssl to create a group certificate and to sign certificates for intermediate group peer certificate authorities.
| Field Summary | |
static int |
DEFAULT_CERT_DAYS
|
static int |
DEFAULT_CRL_DAYS
|
static java.lang.String |
DEFAULT_MESSAGE_DIGEST
|
| Constructor Summary | |
GroupCertificateAuthority()
Constructs a temporary group ca that is deleted when the peer is terminated. |
|
GroupCertificateAuthority(java.io.File[] certchain,
java.io.File conffile,
char[] password)
Constructs a group ca based on the specified ca certificate chain and configuration file. |
|
GroupCertificateAuthority(Identity identity,
java.io.File parent,
char[] password)
Constructs a group ca with the specified identity. |
|
| Method Summary | |
void |
authorizeGroupPeer(java.io.File certreq,
java.io.File certfile)
Authorizes a group peer to act as an intermediate certificate authority |
void |
dispose()
|
java.io.File[] |
getGroupCertificateChain()
|
java.lang.String |
getGroupID()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_CERT_DAYS
public static final int DEFAULT_CRL_DAYS
public static final java.lang.String DEFAULT_MESSAGE_DIGEST
| Constructor Detail |
public GroupCertificateAuthority(java.io.File[] certchain,
java.io.File conffile,
char[] password)
throws java.io.FileNotFoundException,
java.io.IOException
certchain - the group ca certificate chain (must include group ca
certificate at index 0)conffile - the openssl configuration filepassword - the group certificate password
public GroupCertificateAuthority(Identity identity,
java.io.File parent,
char[] password)
throws java.io.IOException
public GroupCertificateAuthority()
throws java.io.IOException
| Method Detail |
public void authorizeGroupPeer(java.io.File certreq,
java.io.File certfile)
throws java.io.IOException
certreq - the certificate request filecertfile - the group peer certificate file
java.io.IOExceptionpublic java.io.File[] getGroupCertificateChain()
public java.lang.String getGroupID()
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||