|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CertificateVerificationService
A service which implementors will ask the user for permission for the certificates which are for some reason not valid and not globally trusted.
| Field Summary | |
|---|---|
static String |
ALWAYS_TRUST_MODE_ENABLED_PROP_NAME
Property for always trust mode. |
static int |
DO_NOT_TRUST
Result of user interaction. |
static int |
TRUST_ALWAYS
Result of user interaction. |
static int |
TRUST_THIS_SESSION_ONLY
Result of user interaction. |
| Method Summary | |
|---|---|
SSLContext |
getSSLContext(String toHost,
int toPort)
Returns SSLContext instance initialized with the custom trust manager, which will try verify the certificate and if verification fails will query the user for acceptance. |
X509TrustManager |
getTrustManager(String toHost,
int toPort)
Obtain custom trust manager, which will try verify the certificate and if verification fails will query the user for acceptance. |
int |
verify(X509Certificate[] chain,
String toHost,
int toPort)
Checks does the user trust the supplied chain of certificates, when connecting to the server and port. |
| Field Detail |
|---|
static final String ALWAYS_TRUST_MODE_ENABLED_PROP_NAME
static final int DO_NOT_TRUST
static final int TRUST_ALWAYS
static final int TRUST_THIS_SESSION_ONLY
| Method Detail |
|---|
int verify(X509Certificate[] chain,
String toHost,
int toPort)
chain - the chain of the certificates to check with user.toHost - the host we are connecting.toPort - the port used when connecting.
X509TrustManager getTrustManager(String toHost,
int toPort)
throws GeneralSecurityException
toHost - the host we are connecting.toPort - the port used when connecting.
GeneralSecurityException - when there is problem creating
the trust manager
SSLContext getSSLContext(String toHost,
int toPort)
throws IOException
toHost - the host we are connecting.toPort - the port used when connecting.
IOException - throws exception when unable to initialize the
ssl context.
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||