|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Custom host name verifier. This interface can be used by
applications when the host name in the certificate is only available at
run time or should be calculated at run time.
The verifyHostName() method is only called after the host certificate
is verified using trusted certificates.
If the custom verifier approves the name in the certificate it should not
throw exceptions. If the name is not approved the JMSSecurityException must be thrown.
Method Summary | |
void |
verifyHostName(java.lang.String connectedHostName,
java.lang.String expectedHostName,
java.lang.String certificateCommonName,
java.security.cert.X509Certificate server_certificate)
Called when the client needs to verify the certificate name. |
Method Detail |
public void verifyHostName(java.lang.String connectedHostName, java.lang.String expectedHostName, java.lang.String certificateCommonName, java.security.cert.X509Certificate server_certificate) throws JMSSecurityException
connectedHostName
- an actual name of the host running the connected SSL server.expectedHostName
- the name set via TibjmsSSL.setExpectedHostName() method or
set in the ConnectionFactory.certificateCommonName
- the value of CN field in the server certificate subject.server_certificate
- the server certificate.
JMSSEcurityException
- if host name verification fails, i.e. the name in the
certificate is unknown or is not correct.
JMSSecurityException
|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |