Package 

Interface CredentialsAuthority

  • All Implemented Interfaces:

    
    public interface CredentialsAuthority
    
                        

    The CredentialsAuthority interface is implemented by applications in order to allow the stack to verify the integrity of incoming messages containing the MessageIntegrityAttribute.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Array<byte> getLocalKey(String username) Returns the key (password) that corresponds to the specified local username or user frag, an empty array if there was no password for that username or null if the username is not a local user name recognized by this CredentialsAuthority.
      abstract Array<byte> getRemoteKey(String username, String media) Returns the key (password) that corresponds to the specified remote username or user frag, an empty array if there was no password for that username or null if the username is not a remote user name recognized by this CredentialsAuthority.
      abstract boolean checkLocalUserName(String username) Verifies whether username is currently known to this authority and returns true if so.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getLocalKey

         abstract Array<byte> getLocalKey(String username)

        Returns the key (password) that corresponds to the specified local username or user frag, an empty array if there was no password for that username or null if the username is not a local user name recognized by this CredentialsAuthority.

        Parameters:
        username - the local user name or user frag whose credentials we'd like to obtain.
      • getRemoteKey

         abstract Array<byte> getRemoteKey(String username, String media)

        Returns the key (password) that corresponds to the specified remote username or user frag, an empty array if there was no password for that username or null if the username is not a remote user name recognized by this CredentialsAuthority.

        Parameters:
        username - the remote user name or user frag whose credentials we'd like to obtain.
        media - the media name that we want to get remote key.
      • checkLocalUserName

         abstract boolean checkLocalUserName(String username)

        Verifies whether username is currently known to this authority and returns true if so. Returns false otherwise.

        Parameters:
        username - the user name whose validity we'd like to check.