public abstract class AbstractSSOTokenExtractor extends java.lang.Object implements SSOTokenExtractor
Base class for SSOTokenExtractor implementation classes. This class provides a basic
implementation of the getToken
method using the findToken
method
which subclasses must implement.
Constructor and Description |
---|
AbstractSSOTokenExtractor() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
findToken(HttpServletRequest req)
SSO token extractor classes must implement the logic to find and return the
single sign-on token for the specified request.
|
java.lang.String |
getToken(HttpServletRequest req)
Returns the SSO token from the specified HTTP request or throws a
SSOTokenNotFoundException . |
public java.lang.String getToken(HttpServletRequest req)
Returns the SSO token from the specified HTTP request or throws a SSOTokenNotFoundException
.
getToken
in interface SSOTokenExtractor
req
- The HTTP request with an SSO token.public abstract java.lang.String findToken(HttpServletRequest req)
SSO token extractor classes must implement the logic to find and return the single sign-on token for the specified request.
findToken
in interface SSOTokenExtractor
req
- The HTTP request with an SSO token.