de.intarsys.pdf.crypt
Class StandardAuthenticationHandler
java.lang.Object
de.intarsys.pdf.crypt.StandardAuthenticationHandler
- All Implemented Interfaces:
- IAuthenticationHandler
public class StandardAuthenticationHandler
- extends Object
- implements IAuthenticationHandler
This object implements the standard authentication strategy for the
StandardSecurityHandler
.
This is extracted to allow for the most flexible authentication in
interactive and batch or server environments.
StandardAuthenticationHandler
public StandardAuthenticationHandler()
authenticate
public void authenticate(ISecurityHandler securityHandler)
throws COSSecurityException
- This
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
.
- Specified by:
authenticate
in interface IAuthenticationHandler
- Parameters:
securityHandler
- The ISecurityHandler
active for the document.
- Throws:
COSSecurityException
- See Also:
IAuthenticationHandler.authenticate(de.intarsys.pdf.crypt.ISecurityHandler)
getPasswordProvider
public de.intarsys.tools.authenticate.IPasswordProvider getPasswordProvider()
getRetries
public int getRetries()
isUseDefaultAuthentication
public boolean isUseDefaultAuthentication()
setPasswordProvider
public void setPasswordProvider(de.intarsys.tools.authenticate.IPasswordProvider passwordProvider)
setRetries
public void setRetries(int retries)
setUseDefaultAuthentication
public void setUseDefaultAuthentication(boolean useDefaultAuthentication)
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.