public abstract class Authenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
aggressiveSessionInvalidation |
protected String |
generalConstraint |
protected String |
idTorusURI |
protected static org.apache.log4j.Logger |
logger |
static String |
MASTER_IDENTITY |
protected String |
masterTorusURI |
protected ServiceRequest |
request |
protected String |
torusQuery |
Constructor and Description |
---|
Authenticator(com.indexdata.masterkey.config.ModuleConfiguration cfg,
ServiceRequest request) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
authenticate() |
protected abstract AuthUtils.AuthType |
getAuthType() |
protected com.indexdata.torus.layer.IdentityTypeLayer |
getFirstIdentity() |
protected com.indexdata.torus.Records |
getIdentityRecords() |
String |
getTorusQuery() |
protected String |
retrieveMasterAttributes(com.indexdata.torus.layer.IdentityTypeLayer masterIdentity) |
protected com.indexdata.torus.layer.IdentityTypeLayer |
retrieveMasterIdentity(String baseUrl,
String realm,
javax.servlet.http.HttpSession httpSession) |
protected void |
setIdentityOnSession(com.indexdata.torus.layer.IdentityTypeLayer identity) |
protected void |
setSessionTimeout(String sessionTimeout,
javax.servlet.http.HttpSession session)
Sets session timeout for the session under authentication if
SESSION_TIMEOUT_MINUTES is defined in the properties for the
authentication plug-in - unless the session already has that
exact timeout set.
|
protected void |
setTorusQuery(String query) |
protected void |
setTorusURIs(com.indexdata.masterkey.config.ModuleConfiguration config) |
void |
writeResponse(javax.servlet.http.HttpServletResponse response) |
public static final String MASTER_IDENTITY
protected String idTorusURI
protected String masterTorusURI
protected ServiceRequest request
protected String torusQuery
protected String generalConstraint
protected boolean aggressiveSessionInvalidation
protected static org.apache.log4j.Logger logger
public Authenticator(com.indexdata.masterkey.config.ModuleConfiguration cfg, ServiceRequest request) throws StandardServiceException
StandardServiceException
public abstract boolean authenticate() throws StandardServiceException
StandardServiceException
protected abstract AuthUtils.AuthType getAuthType()
protected void setTorusQuery(String query)
public String getTorusQuery()
protected void setTorusURIs(com.indexdata.masterkey.config.ModuleConfiguration config) throws StandardServiceException
StandardServiceException
protected com.indexdata.torus.Records getIdentityRecords() throws StandardServiceException
StandardServiceException
protected com.indexdata.torus.layer.IdentityTypeLayer getFirstIdentity() throws StandardServiceException
StandardServiceException
public void writeResponse(javax.servlet.http.HttpServletResponse response) throws StandardServiceException, IOException
StandardServiceException
IOException
protected com.indexdata.torus.layer.IdentityTypeLayer retrieveMasterIdentity(String baseUrl, String realm, javax.servlet.http.HttpSession httpSession) throws MalformedURLException, com.indexdata.rest.client.ResourceConnectionException, UnsupportedEncodingException, StandardServiceException
MalformedURLException
com.indexdata.rest.client.ResourceConnectionException
UnsupportedEncodingException
StandardServiceException
protected String retrieveMasterAttributes(com.indexdata.torus.layer.IdentityTypeLayer masterIdentity) throws MalformedURLException, UnsupportedEncodingException
protected void setIdentityOnSession(com.indexdata.torus.layer.IdentityTypeLayer identity)
protected void setSessionTimeout(String sessionTimeout, javax.servlet.http.HttpSession session)
"Session timeout" is set as "HttpSession#maxInactiveInterval".
If the element <session-timeout> is defined in web.xml, then that timeout would be overridden by this one. If web.xml does not specify the timeout, then the default timeout of the servlet container would be overridden by this one.
sessionTimeout
- String with timeout in minutessession
- The HTTP session to set maxInactiveInterval forIOException
Copyright © 2008-2015 Index Data. All Rights Reserved.