|
Bouncy Castle Cryptography Library 1.64 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.crypto.tls.CertificateRequest
Parsing and encoding of a CertificateRequest struct from RFC 4346. struct { ClientCertificateType certificate_types<1..2^8-1>; DistinguishedName certificate_authorities<3..2^16-1>; } CertificateRequest;
ClientCertificateType
,
X500Name
Field Summary | |
protected java.util.Vector |
certificateAuthorities
Deprecated. |
protected short[] |
certificateTypes
Deprecated. |
protected java.util.Vector |
supportedSignatureAlgorithms
Deprecated. |
Constructor Summary | |
CertificateRequest(short[] certificateTypes,
java.util.Vector supportedSignatureAlgorithms,
java.util.Vector certificateAuthorities)
Deprecated. |
Method Summary | |
void |
encode(java.io.OutputStream output)
Deprecated. Encode this CertificateRequest to an OutputStream . |
java.util.Vector |
getCertificateAuthorities()
Deprecated. |
short[] |
getCertificateTypes()
Deprecated. |
java.util.Vector |
getSupportedSignatureAlgorithms()
Deprecated. |
static CertificateRequest |
parse(TlsContext context,
java.io.InputStream input)
Deprecated. Parse a CertificateRequest from an InputStream . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected short[] certificateTypes
protected java.util.Vector supportedSignatureAlgorithms
protected java.util.Vector certificateAuthorities
Constructor Detail |
public CertificateRequest(short[] certificateTypes, java.util.Vector supportedSignatureAlgorithms, java.util.Vector certificateAuthorities)
certificateTypes
- see ClientCertificateType
for valid constants.certificateAuthorities
- a Vector
of X500Name
.Method Detail |
public short[] getCertificateTypes()
ClientCertificateType
public java.util.Vector getSupportedSignatureAlgorithms()
Vector
of SignatureAndHashAlgorithm
(or null before TLS 1.2).public java.util.Vector getCertificateAuthorities()
Vector
of X500Name
public void encode(java.io.OutputStream output) throws java.io.IOException
CertificateRequest
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
- public static CertificateRequest parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
CertificateRequest
from an InputStream
.context
- the TlsContext
of the current connection.input
- the InputStream
to parse from.CertificateRequest
object.java.io.IOException
-
|
Bouncy Castle Cryptography Library 1.64 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |