org.jasig.cas.client.ssl
Class WhitelistHostnameVerifier
java.lang.Object
org.jasig.cas.client.ssl.WhitelistHostnameVerifier
- All Implemented Interfaces:
- HostnameVerifier
public final class WhitelistHostnameVerifier
- extends Object
- implements HostnameVerifier
Verifies a SSL peer host name based on an explicit whitelist of allowed hosts.
- Since:
- 3.1.10
- Version:
- $Revision: 22945 $ $Date: 2011-02-12 13:30:25 -0500 (Sat, 12 Feb 2011) $
- Author:
- Marvin Addison
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhitelistHostnameVerifier
public WhitelistHostnameVerifier(String[] allowed)
- Creates a new instance using the given array of allowed hosts.
- Parameters:
allowed - Array of allowed hosts.
WhitelistHostnameVerifier
public WhitelistHostnameVerifier(String allowedList)
- Creates a new instance using the given list of allowed hosts.
- Parameters:
allowedList - Comma-separated list of allowed hosts.
verify
public boolean verify(String hostname,
SSLSession session)
-
- Specified by:
verify in interface HostnameVerifier
Copyright © 2006-2011 Jasig. All Rights Reserved.