Class DefaultAuthenticationTransaction

    • Constructor Detail

      • DefaultAuthenticationTransaction

        public DefaultAuthenticationTransaction()
    • Method Detail

      • of

        public static DefaultAuthenticationTransaction of​(Service service,
                                                          Credential... credentials)
        Wrap credentials into an authentication transaction, as a factory method, and return the final result.
        Parameters:
        service - the service
        credentials - the credentials
        Returns:
        the authentication transaction
      • of

        public static DefaultAuthenticationTransaction of​(Credential... credentials)
        Wrap credentials into an authentication transaction, as a factory method, and return the final result.
        Parameters:
        credentials - the credentials
        Returns:
        the authentication transaction
      • hasCredentialOfType

        public boolean hasCredentialOfType​(java.lang.Class<? extends Credential> type)
        Does this AuthenticationTransaction contain a credential of the given type?
        Specified by:
        hasCredentialOfType in interface AuthenticationTransaction
        Parameters:
        type - the credential type to check for
        Returns:
        true if this AuthenticationTransaction contains a credential of the specified type