Interface TrackerAuthenticationListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] authenticate​(java.net.URL resource, java.lang.String user)
      For the UDP tracker protocol it is necessary to return the SHA1 hash of the password for the user, allowing the core to perform the necessary checks
      boolean authenticate​(java.net.URL resource, java.lang.String user, java.lang.String password)
      authentica a given user/password pair for access to the given resource
    • Method Detail

      • authenticate

        boolean authenticate​(java.net.URL resource,
                             java.lang.String user,
                             java.lang.String password)
        authentica a given user/password pair for access to the given resource
        Parameters:
        resource -
        user -
        password -
        Returns:
        true - access OK, false access denied
      • authenticate

        byte[] authenticate​(java.net.URL resource,
                            java.lang.String user)
        For the UDP tracker protocol it is necessary to return the SHA1 hash of the password for the user, allowing the core to perform the necessary checks
        Parameters:
        resource -
        user -
        Returns:
        SHA1 password hash or null if either user unknown of user can't access the resource