Package org.conscrypt

Class CertificateRequest

java.lang.Object
org.conscrypt.Message
org.conscrypt.CertificateRequest

public class CertificateRequest
extends Message
Represents certificate request message
See Also:
TLS 1.0 spec., 7.4.4. Certificate request
  • Constructor Details

    • CertificateRequest

      public CertificateRequest​(byte[] certificate_types, X509Certificate[] accepted)
      Creates outbound message
      Parameters:
      certificate_types -
      accepted - - array of certificate authority certificates
    • CertificateRequest

      public CertificateRequest​(HandshakeIODataStream in, int length) throws IOException
      Creates inbound message
      Parameters:
      in -
      length -
      Throws:
      IOException
  • Method Details

    • send

      public void send​(HandshakeIODataStream out)
      Sends message
      Parameters:
      out -
    • getType

      public int getType()
      Returns message type
    • getTypesAsString

      public String[] getTypesAsString()
      Returns requested certificate types as array of strings