Package org.xwiki.crypto.pkix.params
Class CertifiedKeyPair
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.CertifiedKeyPair
-
public class CertifiedKeyPair extends Object
A certified key pair.- Since:
- 5.4
- Version:
- $Id: 803b48f223826b3775f53b134177dd77a78cb7d3 $
-
-
Constructor Summary
Constructors Constructor Description CertifiedKeyPair(PrivateKeyParameters privateKey, CertifiedPublicKey certificate)
Create a new certified key pair, associating a certificate and a private key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertifiedPublicKey
getCertificate()
AsymmetricKeyPair
getKeyPair()
PrivateKeyParameters
getPrivateKey()
PublicKeyParameters
getPublicKey()
-
-
-
Constructor Detail
-
CertifiedKeyPair
public CertifiedKeyPair(PrivateKeyParameters privateKey, CertifiedPublicKey certificate)
Create a new certified key pair, associating a certificate and a private key.- Parameters:
privateKey
- the private key.certificate
- the certificate.
-
-
Method Detail
-
getCertificate
public CertifiedPublicKey getCertificate()
- Returns:
- the certificate.
-
getPublicKey
public PublicKeyParameters getPublicKey()
- Returns:
- the public key parameters.
-
getPrivateKey
public PrivateKeyParameters getPrivateKey()
- Returns:
- the public key parameters.
-
getKeyPair
public AsymmetricKeyPair getKeyPair()
- Returns:
- a simple key pair.
-
-