public final class AuthenticationUtil extends Object
authenticationcauses an decode of the given credentials bason on base64. Decoded credentials will be turned back to caller.
Modifier and Type | Class and Description |
---|---|
static interface |
AuthenticationUtil.Credentials |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AUTHENTICATE_HEADER |
static String |
HEADER_AUTHORIZATION |
Constructor and Description |
---|
AuthenticationUtil() |
Modifier and Type | Method and Description |
---|---|
static AuthenticationUtil.Credentials |
authenticate(javax.servlet.http.HttpServletRequest request)
Decodes given Credentials through base64 decode and turns back a @link
AuthenticationUtil.Credentials Objects with username and password. |
static void |
sendAuthorisationCommand(javax.servlet.http.HttpServletResponse response)
Sends back via use of marshaled HttpServletResponse an
AuthenticationHeader
|
public static final String DEFAULT_AUTHENTICATE_HEADER
public static final String HEADER_AUTHORIZATION
public static AuthenticationUtil.Credentials authenticate(javax.servlet.http.HttpServletRequest request) throws AuthenticationException
AuthenticationUtil.Credentials
Objects with username and password. Please note, that
this credentials are no valid login-informations against logicalDOC,
instead its more an preparement for the final check.request
- The marshaled HttpServletRequestAuthenticationException
- If given UserCredentials are corrupt or
even missingpublic static void sendAuthorisationCommand(javax.servlet.http.HttpServletResponse response)
response
- the WebdavResponse
Copyright © 2008-2014 Logical Objects. All Rights Reserved.