jPod PDF library

de.intarsys.pdf.crypt
Class StandardAuthenticationHandler

java.lang.Object
  extended by 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.


Constructor Summary
StandardAuthenticationHandler()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardAuthenticationHandler

public StandardAuthenticationHandler()
Method Detail

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)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.