|
||||||||||
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
Class DefaultKeyPair is a bean (vo) style implementation of a KeyPair and can be used by different KeyPairProviders.
Constructor Summary | |
---|---|
DefaultKeyPair()
|
Method Summary | |
---|---|
java.lang.String |
getAlias()
Method gets the alias for the keypair. |
java.security.cert.Certificate |
getCertificate()
Method gets the certificate if one exists. |
java.security.cert.Certificate[] |
getCertificateChain()
Method gets the CertificateChain. |
java.security.Key |
getPrivateKey()
Method gets the privateKey. |
java.security.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(java.lang.String alias)
Method sets the alias. |
void |
setCertificate(java.security.cert.Certificate certificate)
Method sets the certificate. |
void |
setCertificateChain(java.security.cert.Certificate[] certificateChain)
Method sets the certificateChain. |
void |
setPrivateKey(java.security.Key privateKey)
Method sets the key. |
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 java.lang.String getAlias()
KeyPair
getAlias
in interface KeyPair
KeyPair.getAlias()
public void setAlias(java.lang.String alias)
alias
- the alias.public java.security.cert.Certificate getCertificate()
KeyPair
getCertificate
in interface KeyPair
KeyPair.getCertificate()
public void setCertificate(java.security.cert.Certificate certificate)
certificate
- the certificate.public java.security.cert.Certificate[] getCertificateChain()
KeyPair
getCertificateChain
in interface KeyPair
KeyPair.getCertificateChain()
public void setCertificateChain(java.security.cert.Certificate[] certificateChain)
certificateChain
- the certificateChain.public java.security.Key getPrivateKey()
KeyPair
PrivateKey
or a javax.crypto.SecretKey
getPrivateKey
in interface KeyPair
KeyPair.getPrivateKey()
public void setPrivateKey(java.security.Key privateKey)
privateKey
- the key.public java.security.PublicKey getPublicKey()
KeyPair
getPublicKey
in interface KeyPair
KeyPair.getPublicKey()
public boolean isCertificateChainSet()
KeyPair
isCertificateChainSet
in interface KeyPair
KeyPair.isCertificateChainSet()
public boolean isCertificateSet()
KeyPair
isCertificateSet
in interface KeyPair
KeyPair.isCertificateSet()
public boolean isPrivateKeySet()
KeyPair
isPrivateKeySet
in interface KeyPair
KeyPair.isPrivateKeySet()
public boolean isPublicKeySet()
KeyPair
isPublicKeySet
in interface KeyPair
KeyPair.isPublicKeySet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |