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
FieldsModifier and TypeFieldDescriptionprotected static org.apache.http.impl.conn.PoolingHttpClientConnectionManagerConstantconnectionManagerprotected static final StringConstantDEFAULT_EMAIL="{username}@nomail.com"protected final Stringprotected final Stringprotected final Stringprotected StringURL to redirect to after successful login.protected final longprotected final Stringprotected static final StringConstantTYPE_USER_PASSWORD="userPassword"protected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringget.getAddUserToGroups.getImage()Getter for the fieldimage.getImageUrl.getLabel()Getter for the fieldlabel.getName()Returns an unique name for the authentication provider implementationlongGetter for the fieldtimeoutMillis.getType()The provider type.getUrl()Getter for the fieldurl.protected Stringpost.voidsetAddUserToGroups(List<String> addUserToGroups) setAddUserToGroups.voidsetRedirectUrl(String redirectUrl) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
image
-
timeoutMillis
protected final long timeoutMillis -
addUserToGroups
-
url
-
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:
getNamein 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
Stringobject.
-
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:
getTypein interfaceIAuthenticationProvider- Returns:
- The type of the provider
-
getAddUserToGroups
getAddUserToGroups.
- Specified by:
getAddUserToGroupsin interfaceIAuthenticationProvider- Returns:
- a
Listobject.
-
setAddUserToGroups
setAddUserToGroups.
- Specified by:
setAddUserToGroupsin interfaceIAuthenticationProvider- Parameters:
addUserToGroups- aListobject.
-
getRedirectUrl
- Specified by:
getRedirectUrlin interfaceIAuthenticationProvider- Returns:
- the redirectUrl
-
setRedirectUrl
- Specified by:
setRedirectUrlin interfaceIAuthenticationProvider- Parameters:
redirectUrl- the redirectUrl to set
-
post
post.
-
get
get.
-