public class CertificateRequest extends Object
struct { ClientCertificateType certificate_types<1..2^8-1>; DistinguishedName certificate_authorities<3..2^16-1>; } CertificateRequest;
ClientCertificateType
,
X500Name
Modifier and Type | Field and Description |
---|---|
protected Vector |
certificateAuthorities |
protected short[] |
certificateTypes |
protected Vector |
supportedSignatureAlgorithms |
Constructor and Description |
---|
CertificateRequest(short[] certificateTypes,
Vector supportedSignatureAlgorithms,
Vector certificateAuthorities) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
CertificateRequest to an OutputStream . |
Vector |
getCertificateAuthorities() |
short[] |
getCertificateTypes() |
Vector |
getSupportedSignatureAlgorithms() |
static CertificateRequest |
parse(TlsContext context,
InputStream input)
Parse a
CertificateRequest from an InputStream . |
protected short[] certificateTypes
protected Vector supportedSignatureAlgorithms
protected Vector certificateAuthorities
public CertificateRequest(short[] certificateTypes, Vector supportedSignatureAlgorithms, Vector certificateAuthorities)
certificateTypes
- see ClientCertificateType
for valid constants.certificateAuthorities
- a Vector
of X500Name
.public short[] getCertificateTypes()
ClientCertificateType
public Vector getSupportedSignatureAlgorithms()
Vector
of SignatureAndHashAlgorithm
(or null before TLS 1.2).public void encode(OutputStream output) throws IOException
CertificateRequest
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static CertificateRequest parse(TlsContext context, InputStream input) throws IOException
CertificateRequest
from an InputStream
.context
- the TlsContext
of the current connection.input
- the InputStream
to parse from.CertificateRequest
object.IOException