public class SSLSocket extends Object
| Constructor and Description | 
|---|
| SSLSocket() | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | attach(long ctx,
      long sock)Attach APR socket on an SSL connection. | 
| static byte[] | getInfoB(long sock,
        int id)Return SSL Info parameter as byte array. | 
| static int | getInfoI(long sock,
        int id)Return SSL Info parameter as integer. | 
| static String | getInfoS(long sock,
        int id)Return SSL Info parameter as String. | 
| static int | handshake(long thesocket)Do an SSL handshake. | 
| static int | renegotiate(long thesocket)Do an SSL renegotiation. | 
| static void | setVerify(long sock,
         int level,
         int depth)Set Type of Client Certificate verification and Maximum depth of CA
 Certificates in Client Certificate verification. | 
public static int attach(long ctx,
         long sock)
                  throws Exception
ctx - SSLContext to use.sock - APR Socket that already did physical connect or accept.Exception - An error occurredpublic static int handshake(long thesocket)
thesocket - The socket to usepublic static int renegotiate(long thesocket)
thesocket - The socket to usepublic static void setVerify(long sock,
             int level,
             int depth)
 SSL_CVERIFY_NONE           - No client Certificate is required at all
 SSL_CVERIFY_OPTIONAL       - The client may present a valid Certificate
 SSL_CVERIFY_REQUIRE        - The client has to present a valid
                              Certificate
 SSL_CVERIFY_OPTIONAL_NO_CA - The client may present a valid Certificate
                              but it need not to be (successfully)
                              verifiable
 
 sock - The socket to change.level - Type of Client Certificate verification.depth - Maximum number of certificates to permit in chain from
              client to trusted CA. Use a value of 0 or less to leave the
              current value unchangedpublic static byte[] getInfoB(long sock,
              int id)
                       throws Exception
sock - The socket to read the data from.id - Parameter id.Exception - An error occurredpublic static String getInfoS(long sock, int id) throws Exception
sock - The socket to read the data from.id - Parameter id.Exception - An error occurredCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.