Class AuthenticationInfo

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract byte[] authenticate​(ChallengeResponse challenge, AbstractRequest request)
      Sign the given nonce and requestDigest given as a challenge to the given request.
      abstract byte[] getAuthType()
      Get the identifier for the type of authentication performed.
      abstract byte[] getUserIdHandle()
      Get the name of the handle that identifies the user that is represented by this authentication object.
      abstract int getUserIdIndex()
      Get the index of the handle value that identifies this user.
      ValueReference getUserValueReference()
      Get the ValueReference that identifies the user that is represented by this authentication object.
      • Methods inherited from class java.lang.Object

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

      • AuthenticationInfo

        public AuthenticationInfo()
    • Method Detail

      • getAuthType

        public abstract byte[] getAuthType()
        Get the identifier for the type of authentication performed. This authentication type needs to be the same type as the handle value that the user's handle/id refers to.
      • authenticate

        public abstract byte[] authenticate​(ChallengeResponse challenge,
                                            AbstractRequest request)
                                     throws HandleException
        Sign the given nonce and requestDigest given as a challenge to the given request. The implementation of this method should also probably verify that the client did in fact send the specified request, and that the associated digest is a valid digest of the request.
        Returns:
        a signature of the concatenation of nonce and requestDigest.
        Throws:
        HandleException
      • getUserIdHandle

        public abstract byte[] getUserIdHandle()
        Get the name of the handle that identifies the user that is represented by this authentication object.
      • getUserIdIndex

        public abstract int getUserIdIndex()
        Get the index of the handle value that identifies this user. The returned index value of the handle that identifies this user should contain a value with a type (public key, secret key, etc) that corresponds to the way that this user is authenticating.
      • getUserValueReference

        public ValueReference getUserValueReference()
        Get the ValueReference that identifies the user that is represented by this authentication object.