com.f1j.ss
Class DocumentOpenCallback.Password

java.lang.Object
  |
  +--com.f1j.ss.DocumentOpenCallback.Password

public abstract static class DocumentOpenCallback.Password
extends java.lang.Object

A class to receive and validate passwords when opening a document.

Since:
12.0
See Also:
DocumentOpenCallback.getOpenPassword(String, DocumentOpenCallback.Password), DocumentOpenCallback.getModifyPassword(String, DocumentOpenCallback.Password)

Method Summary
 void submitPassword(java.lang.String password)
          Call this method to submit a password for validation.
 

Method Detail

submitPassword

public final void submitPassword(java.lang.String password)
                          throws AccessDeniedException
Call this method to submit a password for validation. If this method returns successfully, the caller may assume that the password was correct and proceed as normal. If the method throws an exception, then the password was invalid. The AccessDeniedException should be caught and handled appropriately.
Parameters:
password - The password being submitted.
Throws:
AccessDeniedException - If the password was invalid.
See Also:
DocumentOpenCallback.getOpenPassword(String, DocumentOpenCallback.Password), DocumentOpenCallback.getModifyPassword(String, DocumentOpenCallback.Password)