Package com.atlassian.crowd.util
Class SSOUtils
java.lang.Object
com.atlassian.crowd.util.SSOUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
SSOUtils
public SSOUtils()
-
-
Method Details
-
isCookieDomainValid
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.
-