Class HttpAuthenticationProvider
java.lang.Object
io.goobi.viewer.model.security.authentication.HttpAuthenticationProvider
- All Implemented Interfaces:
IAuthenticationProvider
- Direct Known Subclasses:
BibliothecaProvider
,HttpHeaderProvider
,LitteraProvider
,OpenIdProvider
,VuFindProvider
Abstract HttpAuthenticationProvider class.
- Author:
- Florian Alpers
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.http.impl.conn.PoolingHttpClientConnectionManager
ConstantconnectionManager
protected static final String
ConstantDEFAULT_EMAIL="{username}@nomail.com"
protected final String
protected final String
protected final String
protected String
URL to redirect to after successful login.protected final long
protected final String
protected static final String
ConstantTYPE_USER_PASSWORD="userPassword"
protected final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
get.getAddUserToGroups.getImage()
Getter for the fieldimage
.getImageUrl.getLabel()
Getter for the fieldlabel
.getName()
Returns an unique name for the authentication provider implementationlong
Getter for the fieldtimeoutMillis
.getType()
The provider type.getUrl()
Getter for the fieldurl
.protected String
post.void
setAddUserToGroups
(List<String> addUserToGroups) setAddUserToGroups.void
setRedirectUrl
(String redirectUrl) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.goobi.viewer.model.security.authentication.IAuthenticationProvider
allowsEmailChange, allowsNicknameChange, allowsPasswordChange, login, logout
-
Field Details
-
DEFAULT_EMAIL
ConstantDEFAULT_EMAIL="{username}@nomail.com"
- See Also:
-
TYPE_USER_PASSWORD
ConstantTYPE_USER_PASSWORD="userPassword"
- See Also:
-
connectionManager
protected static org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManagerConstantconnectionManager
-
name
-
label
-
type
-
url
-
image
-
timeoutMillis
protected final long timeoutMillis -
addUserToGroups
-
redirectUrl
URL to redirect to after successful login.
-
-
Constructor Details
-
Method Details
-
getTimeoutMillis
public long getTimeoutMillis()Getter for the field
timeoutMillis
.- Returns:
- the timeoutMillis
-
getName
Returns an unique name for the authentication provider implementation- Specified by:
getName
in interfaceIAuthenticationProvider
- Returns:
- The name of the provider
-
getLabel
Getter for the field
label
.- Returns:
- the label
-
getUrl
Getter for the field
url
.- Returns:
- the url
-
getImage
Getter for the field
image
.- Returns:
- the image
-
getImageUrl
getImageUrl.
- Returns:
- a
String
object.
-
getType
The provider type. This should either be "local", "userpassword" or "openId". This value is used to determine where this provider is displayed. Providers with the same type are displayed together- Specified by:
getType
in interfaceIAuthenticationProvider
- Returns:
- The type of the provider
-
getAddUserToGroups
getAddUserToGroups.
- Specified by:
getAddUserToGroups
in interfaceIAuthenticationProvider
- Returns:
- a
List
object.
-
setAddUserToGroups
setAddUserToGroups.
- Specified by:
setAddUserToGroups
in interfaceIAuthenticationProvider
- Parameters:
addUserToGroups
- aList
object.
-
getRedirectUrl
- Specified by:
getRedirectUrl
in interfaceIAuthenticationProvider
- Returns:
- the redirectUrl
-
setRedirectUrl
- Specified by:
setRedirectUrl
in interfaceIAuthenticationProvider
- Parameters:
redirectUrl
- the redirectUrl to set
-
post
post.
-
get
get.
-