public class DefaultKeyPair extends Object implements KeyPair, Serializable
Constructor and Description |
---|
DefaultKeyPair() |
Modifier and Type | Method and Description |
---|---|
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) |
public String getAlias()
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
Copyright © 2004–2017 52north.org. All rights reserved.