@Service(value="servletAuthenticator") public class ArchivaServletAuthenticator extends Object implements ServletAuthenticator
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log |
private org.apache.archiva.redback.system.SecuritySystem |
securitySystem |
Constructor and Description |
---|
ArchivaServletAuthenticator() |
Modifier and Type | Method and Description |
---|---|
org.apache.archiva.redback.system.SecuritySystem |
getSecuritySystem() |
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.
|
void |
setSecuritySystem(org.apache.archiva.redback.system.SecuritySystem securitySystem) |
private org.slf4j.Logger log
@Inject private org.apache.archiva.redback.system.SecuritySystem securitySystem
public ArchivaServletAuthenticator()
public 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
ServletAuthenticator
isAuthenticated
in interface ServletAuthenticator
org.apache.archiva.redback.authentication.AuthenticationException
org.apache.archiva.redback.policy.AccountLockedException
org.apache.archiva.redback.policy.MustChangePasswordException
public 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
ServletAuthenticator
isAuthorized
in interface ServletAuthenticator
org.apache.archiva.redback.authorization.AuthorizationException
org.apache.archiva.redback.authorization.UnauthorizedException
public boolean isAuthorized(String principal, String repoId, String permission) throws org.apache.archiva.redback.authorization.UnauthorizedException
ServletAuthenticator
isAuthorized
in interface ServletAuthenticator
org.apache.archiva.redback.authorization.UnauthorizedException
public org.apache.archiva.redback.system.SecuritySystem getSecuritySystem()
public void setSecuritySystem(org.apache.archiva.redback.system.SecuritySystem securitySystem)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.