@Component public class JWTTokenRestAuthenticationServiceImpl extends Object implements RestAuthenticationService, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
JWTTokenRestAuthenticationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationDataForUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DSpaceAuthentication authentication) |
void |
afterPropertiesSet() |
EPerson |
getAuthenticatedEPerson(javax.servlet.http.HttpServletRequest request,
Context context) |
AuthenticationService |
getAuthenticationService() |
String |
getWwwAuthenticateHeaderValue(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Return the value that should be passed in the WWWW-Authenticate header for 4xx responses to the client
|
boolean |
hasAuthenticationData(javax.servlet.http.HttpServletRequest request) |
void |
invalidateAuthenticationData(javax.servlet.http.HttpServletRequest request,
Context context) |
public JWTTokenRestAuthenticationServiceImpl()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void addAuthenticationDataForUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DSpaceAuthentication authentication)
throws IOException
addAuthenticationDataForUser in interface RestAuthenticationServiceIOExceptionpublic EPerson getAuthenticatedEPerson(javax.servlet.http.HttpServletRequest request, Context context)
getAuthenticatedEPerson in interface RestAuthenticationServicepublic boolean hasAuthenticationData(javax.servlet.http.HttpServletRequest request)
hasAuthenticationData in interface RestAuthenticationServicepublic void invalidateAuthenticationData(javax.servlet.http.HttpServletRequest request,
Context context)
throws Exception
invalidateAuthenticationData in interface RestAuthenticationServiceExceptionpublic AuthenticationService getAuthenticationService()
getAuthenticationService in interface RestAuthenticationServicepublic String getWwwAuthenticateHeaderValue(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RestAuthenticationServicegetWwwAuthenticateHeaderValue in interface RestAuthenticationServicerequest - The current client requestresponse - The response being build for the clientCopyright © 2019 DuraSpace. All rights reserved.