org.jasig.cas.client.ssl
Class WhitelistHostnameVerifier

java.lang.Object
  extended by 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

Constructor Summary
WhitelistHostnameVerifier(String allowedList)
          Creates a new instance using the given list of allowed hosts.
WhitelistHostnameVerifier(String[] allowed)
          Creates a new instance using the given array of allowed hosts.
 
Method Summary
 boolean verify(String hostname, SSLSession session)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

verify

public boolean verify(String hostname,
                      SSLSession session)

Specified by:
verify in interface HostnameVerifier


Copyright © 2006-2011 Jasig. All Rights Reserved.