Interface IPasswordMapperActivity

  • All Known Subinterfaces:
    IHTTPOutput, IPostParameters
    All Known Implementing Classes:
    JspWrapper, MultipartWrapper

    public interface IPasswordMapperActivity
    This interface abstracts from password mapping activity, available for all connector-provided UI components. Passwords should not appear in any data sent from the crawler UI to the browser. The following methods are provided to assist the connector UI components in this task. A connector coder should use these services as follows: - When the password would ordinarily be put into a form element as the current password, instead use mapPasswordToKey() to create a key and put that in instead. - When the "password" is posted, and the post is processed, use mapKeyToPassword() to restore the correct password.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String mapKeyToPassword​(java.lang.String key)
      Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session.
      java.lang.String mapPasswordToKey​(java.lang.String password)
      Map a password to a unique key.
    • Method Detail

      • mapPasswordToKey

        java.lang.String mapPasswordToKey​(java.lang.String password)
        Map a password to a unique key. This method works within a specific given browser session to replace an existing password with a key which can be used to look up the password at a later time.
        Parameters:
        password - is the password.
        Returns:
        the key.
      • mapKeyToPassword

        java.lang.String mapKeyToPassword​(java.lang.String key)
        Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session. If the provided key is not an actual key, instead the key value is assumed to be a new password value.
        Parameters:
        key - is the key.
        Returns:
        the password.