com.atlassian.crowd.util
Class SSOUtils

java.lang.Object
  extended by com.atlassian.crowd.util.SSOUtils

public class SSOUtils
extends Object


Constructor Summary
SSOUtils()
           
 
Method Summary
static boolean isCookieDomainValid(String cookieDomain, String hostname)
          Given a hostname, this method tests if the supplied cookie domain is legal, following RFC 6265 as closely as possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSOUtils

public SSOUtils()
Method Detail

isCookieDomainValid

public static boolean isCookieDomainValid(String cookieDomain,
                                          String hostname)
Given a hostname, this method tests if the supplied cookie domain is legal, following RFC 6265 as closely as possible. This method assumes sane input to the extend that both the hostname and domain string MUST be valid, or the result is unspecified.

Parameters:
cookieDomain - a cookie domain.
hostname - the host part of a URL.
Returns:
true if the cookie domain is valid for the given hostname, false otherwise.


Copyright © 2012 Atlassian. All Rights Reserved.