Interface AuthenticationTransaction

All Superinterfaces:
Serializable

public interface AuthenticationTransaction extends Serializable
Since:
4.2.0
  • Method Details

    • collect

      Collect previous authentications.
      Parameters:
      authentications - the authentications
      Returns:
      the authentication transaction
    • getService

      Service getService()
      Gets service linked to this transaction.
      Returns:
      the service
    • getCredentials

      Collection<Credential> getCredentials()
      Gets credentials.
      Returns:
      the credentials
    • getAuthentications

      Collection<Authentication> getAuthentications()
      Gets authentications.
      Returns:
      the authentications
    • getPrimaryCredential

      default Optional<Credential> getPrimaryCredential()
      Gets the first (primary) credential in the chain.
      Returns:
      the credential
    • hasCredentialOfType

      default boolean hasCredentialOfType(Class<? extends Credential> type)
      Does this AuthenticationTransaction contain a credential of the given type?
      Parameters:
      type - the credential type to check for
      Returns:
      true if this AuthenticationTransaction contains a credential of the specified type
    • getCredentialsOfType

      default <T extends Credential> Collection<T> getCredentialsOfType(Class<T> type)
      Gets credentials of type.
      Type Parameters:
      T - the type parameter
      Parameters:
      type - the type
      Returns:
      the credentials of type