Package com.unblu.sdk.core.model
Class UnbluClientCertRequestData
java.lang.Object
com.unblu.sdk.core.model.UnbluClientCertRequestData
Represents the data required for proceeding with a client certificate request in the Unblu SDK.
This class encapsulates a private key
PrivateKey
and a certificate chain X509Certificate
for client authentication.
This data will be used later on when requested by the client-
Constructor Summary
ConstructorDescriptionUnbluClientCertRequestData
(PrivateKey privateKey, X509Certificate[] certificateChain) Constructs a newUnbluClientCertRequestData
instance with the specified private key and certificate chain. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCertificateChain
(X509Certificate[] certificateChain) Sets the certificate chain.void
setPrivateKey
(PrivateKey privateKey) Sets the private key.
-
Constructor Details
-
UnbluClientCertRequestData
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 Details
-
getPrivateKey
- Returns:
- The private key used for authentication.
-
setPrivateKey
Sets the private key.- Parameters:
privateKey
- The private key to be used for authentication.
-
getCertificateChain
- Returns:
- The certificate chain associated with the private key.
-
setCertificateChain
Sets the certificate chain.- Parameters:
certificateChain
- The certificate chain to be associated with the private key.
-