|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.crypto.DefaultKeyPair
public class DefaultKeyPair
A bean (vo) style implementation of a KeyPair and can be used by different KeyPairProviders.
Constructor Summary | |
---|---|
DefaultKeyPair()
|
Method Summary | |
---|---|
String |
getAlias()
Method gets the alias for the keypair. |
Certificate |
getCertificate()
Method gets the certificate if one exists. |
Certificate[] |
getCertificateChain()
Method gets the CertificateChain. |
Key |
getPrivateKey()
Method gets the privateKey. |
PublicKey |
getPublicKey()
Method gets the publicKey. |
boolean |
isCertificateChainSet()
Returns if the pair bean contains a certificate chain. |
boolean |
isCertificateSet()
Returns if the pair bean contains a certificate. |
boolean |
isPrivateKeySet()
Returns if the pair bean contains a private key. |
boolean |
isPublicKeySet()
Returns if the pair bean contains a public key. |
void |
setAlias(String alias)
|
void |
setCertificate(Certificate certificate)
|
void |
setCertificateChain(Certificate[] certificateChain)
|
void |
setPrivateKey(Key privateKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultKeyPair()
Method Detail |
---|
public String getAlias()
KeyPair
getAlias
in interface KeyPair
public void setAlias(String alias)
public Certificate getCertificate()
KeyPair
getCertificate
in interface KeyPair
public void setCertificate(Certificate certificate)
public Certificate[] getCertificateChain()
KeyPair
getCertificateChain
in interface KeyPair
public void setCertificateChain(Certificate[] certificateChain)
public Key getPrivateKey()
KeyPair
PrivateKey
or a SecretKey
getPrivateKey
in interface KeyPair
public void setPrivateKey(Key privateKey)
public PublicKey getPublicKey()
KeyPair
getPublicKey
in interface KeyPair
public boolean isCertificateChainSet()
KeyPair
isCertificateChainSet
in interface KeyPair
public boolean isCertificateSet()
KeyPair
isCertificateSet
in interface KeyPair
public boolean isPrivateKeySet()
KeyPair
isPrivateKeySet
in interface KeyPair
public boolean isPublicKeySet()
KeyPair
isPublicKeySet
in interface KeyPair
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |