Package org.bouncycastle.crypto.tls
Class CertificateRequest
- java.lang.Object
-
- org.bouncycastle.crypto.tls.CertificateRequest
-
public class CertificateRequest extends java.lang.ObjectDeprecated.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.VectorcertificateAuthoritiesDeprecated.protected short[]certificateTypesDeprecated.protected java.util.VectorsupportedSignatureAlgorithmsDeprecated.
-
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 voidencode(java.io.OutputStream output)Deprecated.Encode thisCertificateRequestto anOutputStream.java.util.VectorgetCertificateAuthorities()Deprecated.short[]getCertificateTypes()Deprecated.java.util.VectorgetSupportedSignatureAlgorithms()Deprecated.static CertificateRequestparse(TlsContext context, java.io.InputStream input)Deprecated.Parse aCertificateRequestfrom anInputStream.
-
-
-
Constructor Detail
-
CertificateRequest
public CertificateRequest(short[] certificateTypes, java.util.Vector supportedSignatureAlgorithms, java.util.Vector certificateAuthorities)Deprecated.- Parameters:
certificateTypes- seeClientCertificateTypefor valid constants.certificateAuthorities- aVectorofX500Name.
-
-
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
VectorofSignatureAndHashAlgorithm(or null before TLS 1.2).
-
getCertificateAuthorities
public java.util.Vector getCertificateAuthorities()
Deprecated.- Returns:
- a
VectorofX500Name
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionDeprecated.Encode thisCertificateRequestto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static CertificateRequest parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Deprecated.Parse aCertificateRequestfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
CertificateRequestobject. - Throws:
java.io.IOException
-
-