|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.net.ssl.AbstractHostnameVerifier
public class AbstractHostnameVerifier
Abstract Hostname Verifier
Accepts for example a certificate with the common name "*.openmdx.org" to access "any-sub-domain.openmdx.org".
| Constructor Summary | |
|---|---|
protected |
AbstractHostnameVerifier()
Constructor |
| Method Summary | |
|---|---|
protected static String |
getCommonName(String distinguishedName)
Retrieves the common name from an X.500 principal |
protected boolean |
matches(String hostName,
String commonName)
Tests whether the host name matches a given wildcard common name |
boolean |
verify(String hostName,
SSLSession sslSession)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractHostnameVerifier()
| Method Detail |
|---|
public boolean verify(String hostName,
SSLSession sslSession)
verify in interface HostnameVerifier
protected boolean matches(String hostName,
String commonName)
This method is usually overridden by a subclass as JSSE does not call the HostnameVerifier interceptor if the given expression evaluates to true.
hostName - commonName -
protected static String getCommonName(String distinguishedName)
principal -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||