org.jasig.cas.client.ssl
Class RegexHostnameVerifier

java.lang.Object
  extended by org.jasig.cas.client.ssl.RegexHostnameVerifier
All Implemented Interfaces:
HostnameVerifier

public final class RegexHostnameVerifier
extends Object
implements HostnameVerifier

Validates an SSL peer's hostname using a regular expression that a candidate host must match in order to be verified.

Since:
3.1.10
Version:
$Revision: 22945 $ $Date: 2011-02-12 13:30:25 -0500 (Sat, 12 Feb 2011) $
Author:
Marvin Addison

Constructor Summary
RegexHostnameVerifier(String regex)
          Creates a new instance using the given regular expression.
 
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

RegexHostnameVerifier

public RegexHostnameVerifier(String regex)
Creates a new instance using the given regular expression.

Parameters:
regex - Regular expression describing 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.