Package com.unblu.sdk.core.model
Class UnbluClientCertRequestData
- java.lang.Object
-
- com.unblu.sdk.core.model.UnbluClientCertRequestData
-
public class UnbluClientCertRequestData extends java.lang.Object
Represents the data required for proceeding with a client certificate request in the Unblu SDK. This class encapsulates a private keyPrivateKey
and a certificate chainX509Certificate
for client authentication. This data will be used later on when requested by the client
-
-
Constructor Summary
Constructors Constructor Description UnbluClientCertRequestData(java.security.PrivateKey privateKey, java.security.cert.X509Certificate[] certificateChain)
Constructs a newUnbluClientCertRequestData
instance with the specified private key and certificate chain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509Certificate[]
getCertificateChain()
java.security.PrivateKey
getPrivateKey()
void
setCertificateChain(java.security.cert.X509Certificate[] certificateChain)
Sets the certificate chain.void
setPrivateKey(java.security.PrivateKey privateKey)
Sets the private key.
-
-
-
Constructor Detail
-
UnbluClientCertRequestData
public UnbluClientCertRequestData(java.security.PrivateKey privateKey, java.security.cert.X509Certificate[] certificateChain)
Constructs a newUnbluClientCertRequestData
instance with the specified private key and certificate chain.- Parameters:
privateKey
- The private key used for authentication.certificateChain
- The certificate chain associated with the private key.
-
-
Method Detail
-
getPrivateKey
public java.security.PrivateKey getPrivateKey()
- Returns:
- The private key used for authentication.
-
setPrivateKey
public void setPrivateKey(java.security.PrivateKey privateKey)
Sets the private key.- Parameters:
privateKey
- The private key to be used for authentication.
-
getCertificateChain
public java.security.cert.X509Certificate[] getCertificateChain()
- Returns:
- The certificate chain associated with the private key.
-
setCertificateChain
public void setCertificateChain(java.security.cert.X509Certificate[] certificateChain)
Sets the certificate chain.- Parameters:
certificateChain
- The certificate chain to be associated with the private key.
-
-