|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.javasign.util.KeyAndCertificate
This class encapsulates a key and an optional certificate.
Field Summary | |
protected X509PublicKeyCertificate |
certificate_
This optional certificate. |
protected Key |
key_
The key. |
Constructor Summary | |
KeyAndCertificate(Key key,
X509PublicKeyCertificate certificate)
Creates a new object that holds the given key and certificate. |
Method Summary | |
X509PublicKeyCertificate |
getCertificate()
Returns the certificate. |
Key |
getKey()
Returns the key. |
void |
setCertificate(X509PublicKeyCertificate certificate)
Sets the certificate. |
void |
setKey(Key key)
Sets the key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Key key_
protected X509PublicKeyCertificate certificate_
Constructor Detail |
public KeyAndCertificate(Key key, X509PublicKeyCertificate certificate)
key
- The key.certificate
- The certificate.Method Detail |
public X509PublicKeyCertificate getCertificate()
public Key getKey()
public void setCertificate(X509PublicKeyCertificate certificate)
certificate
- The certificate.public void setKey(Key key)
key
- The key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |