Package org.conscrypt
Class CertificateRequest
java.lang.Object
org.conscrypt.Message
org.conscrypt.CertificateRequest
public class CertificateRequest extends Message
Represents certificate request message
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CertificateRequest(byte[] certificate_types, X509Certificate[] accepted)Creates outbound messageCertificateRequest(HandshakeIODataStream in, int length)Creates inbound message -
Method Summary
Modifier and Type Method Description intgetType()Returns message typeString[]getTypesAsString()Returns requested certificate types as array of stringsvoidsend(HandshakeIODataStream out)Sends messageMethods inherited from class org.conscrypt.Message
fatalAlert, fatalAlert, length
-
Constructor Details
-
CertificateRequest
Creates outbound message- Parameters:
certificate_types-accepted- - array of certificate authority certificates
-
CertificateRequest
Creates inbound message- Parameters:
in-length-- Throws:
IOException
-
-
Method Details
-
send
Sends message- Parameters:
out-
-
getType
public int getType()Returns message type -
getTypesAsString
Returns requested certificate types as array of strings
-