Class DefaultCredentialsProvider

    • Constructor Detail

      • DefaultCredentialsProvider

        public DefaultCredentialsProvider()
    • Method Detail

      • credentials

        public Optional<User> credentials​(UUID authenticationToken)
                                   throws CredentialsException
        Description copied from interface: CredentialsProvider
        Performs an authentication lookup, using the default registry port (1099).
        Specified by:
        credentials in interface CredentialsProvider
        Parameters:
        authenticationToken - the authentication token
        Returns:
        the User credentials associated with the authenticationToken, an empty Optional if the user credentials were not found or have expired
        Throws:
        CredentialsException - in case of an exception while fetching credentials, such as no credentials provider found