public class StandardAuthenticationHandler extends Object implements IAuthenticationHandler
StandardSecurityHandler.
This is extracted to allow for the most flexible authentication in interactive and batch or server environments.
| Constructor and Description |
|---|
StandardAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(ISecurityHandler securityHandler)
This
IAuthenticationHandler implements the standard
authentication strategy for the built in security handlers. |
de.intarsys.tools.authenticate.IPasswordProvider |
getPasswordProvider() |
int |
getRetries() |
boolean |
isUseDefaultAuthentication() |
void |
setPasswordProvider(de.intarsys.tools.authenticate.IPasswordProvider passwordProvider) |
void |
setRetries(int retries) |
void |
setUseDefaultAuthentication(boolean useDefaultAuthentication) |
public void authenticate(ISecurityHandler securityHandler) throws COSSecurityException
IAuthenticationHandler implements the standard
authentication strategy for the built in security handlers.
Applying the default (empty user) authentication can be switched off.
Password acquiring can be modified using the PasswordProvider.
authenticate in interface IAuthenticationHandlersecurityHandler - The ISecurityHandler active for the document.COSSecurityExceptionIAuthenticationHandler.authenticate(de.intarsys.pdf.crypt.ISecurityHandler)public de.intarsys.tools.authenticate.IPasswordProvider getPasswordProvider()
public int getRetries()
public boolean isUseDefaultAuthentication()
public void setPasswordProvider(de.intarsys.tools.authenticate.IPasswordProvider passwordProvider)
public void setRetries(int retries)
public void setUseDefaultAuthentication(boolean useDefaultAuthentication)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.