public interface ServletAuthenticator
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
org.apache.archiva.redback.authentication.AuthenticationResult result)
Authentication check for users.
|
boolean |
isAuthorized(javax.servlet.http.HttpServletRequest request,
org.apache.archiva.redback.system.SecuritySession securitySession,
String repositoryId,
String permission)
Authorization check for valid users.
|
boolean |
isAuthorized(String principal,
String repoId,
String permission)
Authorization check specific for user guest, which doesn't go through
HttpBasicAuthentication#getAuthenticationResult( HttpServletRequest request, HttpServletResponse response )
since no credentials are attached to the request.
|
boolean isAuthenticated(javax.servlet.http.HttpServletRequest request, org.apache.archiva.redback.authentication.AuthenticationResult result) throws org.apache.archiva.redback.authentication.AuthenticationException, org.apache.archiva.redback.policy.AccountLockedException, org.apache.archiva.redback.policy.MustChangePasswordException
request
- result
- org.apache.archiva.redback.authentication.AuthenticationException
org.apache.archiva.redback.policy.AccountLockedException
org.apache.archiva.redback.policy.MustChangePasswordException
boolean isAuthorized(javax.servlet.http.HttpServletRequest request, org.apache.archiva.redback.system.SecuritySession securitySession, String repositoryId, String permission) throws org.apache.archiva.redback.authorization.AuthorizationException, org.apache.archiva.redback.authorization.UnauthorizedException
request
- securitySession
- repositoryId
- permission
- org.apache.archiva.redback.authorization.AuthorizationException
org.apache.archiva.redback.authorization.UnauthorizedException
boolean isAuthorized(String principal, String repoId, String permission) throws org.apache.archiva.redback.authorization.UnauthorizedException
principal
- repoId
- permission
- org.apache.archiva.redback.authorization.UnauthorizedException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.