Class CertificateRequest
-
- All Implemented Interfaces:
public class CertificateRequest
The certificate request includes information to help choose the client certificate.
-
-
Field Summary
Fields Modifier and Type Field Description public final Array<String>
keyTypes
public final Array<Principal>
principals
public final String
host
public final int
port
-
Method Summary
Modifier and Type Method Description Array<String>
getKeyTypes()
Array<Principal>
getPrincipals()
String
getHost()
int
getPort()
void
proceed(@Nullable() PrivateKey privateKey, @Nullable() Array<X509Certificate> chain)
Proceed with the provided certificate information. void
ignore()
Ignore the request. -
-
Method Detail
-
getKeyTypes
@Nullable() Array<String> getKeyTypes()
- Returns:
The acceptable types of asymmetric keys (can be null).
-
getPrincipals
@Nullable() Array<Principal> getPrincipals()
- Returns:
The acceptable certificate issuers for the certificate matching the private key (can be null).
-
getHost
@NonNull() String getHost()
- Returns:
The host name of the server requesting the certificate.
-
getPort
int getPort()
- Returns:
The port number of the server requesting the certificate.
-
proceed
void proceed(@Nullable() PrivateKey privateKey, @Nullable() Array<X509Certificate> chain)
Proceed with the provided certificate information.
- Parameters:
privateKey
- the private key.chain
- the certificate chain.
-
ignore
void ignore()
Ignore the request.
-
-
-
-