Package org.bouncycastle.crypto.tls
Class CertificateRequest
- java.lang.Object
-
- org.bouncycastle.crypto.tls.CertificateRequest
-
public class CertificateRequest extends java.lang.Object
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).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;
- See Also:
ClientCertificateType
,X500Name
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector
certificateAuthorities
Deprecated.protected short[]
certificateTypes
Deprecated.protected java.util.Vector
supportedSignatureAlgorithms
Deprecated.
-
Constructor Summary
Constructors Constructor Description CertificateRequest(short[] certificateTypes, java.util.Vector supportedSignatureAlgorithms, java.util.Vector certificateAuthorities)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Deprecated.Encode thisCertificateRequest
to anOutputStream
.java.util.Vector
getCertificateAuthorities()
Deprecated.short[]
getCertificateTypes()
Deprecated.java.util.Vector
getSupportedSignatureAlgorithms()
Deprecated.static CertificateRequest
parse(TlsContext context, java.io.InputStream input)
Deprecated.Parse aCertificateRequest
from anInputStream
.
-
-
-
Constructor Detail
-
CertificateRequest
public CertificateRequest(short[] certificateTypes, java.util.Vector supportedSignatureAlgorithms, java.util.Vector certificateAuthorities)
Deprecated.- Parameters:
certificateTypes
- seeClientCertificateType
for valid constants.certificateAuthorities
- aVector
ofX500Name
.
-
-
Method Detail
-
getCertificateTypes
public short[] getCertificateTypes()
Deprecated.- Returns:
- an array of certificate types
- See Also:
ClientCertificateType
-
getSupportedSignatureAlgorithms
public java.util.Vector getSupportedSignatureAlgorithms()
Deprecated.- Returns:
- a
Vector
ofSignatureAndHashAlgorithm
(or null before TLS 1.2).
-
getCertificateAuthorities
public java.util.Vector getCertificateAuthorities()
Deprecated.- Returns:
- a
Vector
ofX500Name
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Deprecated.Encode thisCertificateRequest
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static CertificateRequest parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Deprecated.Parse aCertificateRequest
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
CertificateRequest
object. - Throws:
java.io.IOException
-
-