Class DefaultAuthenticationTransaction

java.lang.Object
org.apereo.cas.authentication.DefaultAuthenticationTransaction
All Implemented Interfaces:
Serializable, org.apereo.cas.authentication.AuthenticationTransaction, org.apereo.cas.authentication.RegisteredServiceAwareAuthenticationTransaction

public class DefaultAuthenticationTransaction extends Object implements org.apereo.cas.authentication.RegisteredServiceAwareAuthenticationTransaction
Since:
4.2.0
See Also:
  • Constructor Details

    • DefaultAuthenticationTransaction

      public DefaultAuthenticationTransaction(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.services.RegisteredService registeredService, Collection<org.apereo.cas.authentication.Credential> credentials)
  • Method Details

    • collect

      @CanIgnoreReturnValue public org.apereo.cas.authentication.AuthenticationTransaction collect(Collection<org.apereo.cas.authentication.Authentication> authentications)
      Specified by:
      collect in interface org.apereo.cas.authentication.AuthenticationTransaction
    • getPrimaryCredential

      public Optional<org.apereo.cas.authentication.Credential> getPrimaryCredential()
      Specified by:
      getPrimaryCredential in interface org.apereo.cas.authentication.AuthenticationTransaction
    • hasCredentialOfType

      public boolean hasCredentialOfType(Class<? extends org.apereo.cas.authentication.Credential> type)
      Specified by:
      hasCredentialOfType in interface org.apereo.cas.authentication.AuthenticationTransaction
    • getService

      public org.apereo.cas.authentication.principal.Service getService()
      Specified by:
      getService in interface org.apereo.cas.authentication.AuthenticationTransaction
    • getRegisteredService

      public org.apereo.cas.services.RegisteredService getRegisteredService()
      Specified by:
      getRegisteredService in interface org.apereo.cas.authentication.RegisteredServiceAwareAuthenticationTransaction
    • getCredentials

      public Collection<org.apereo.cas.authentication.Credential> getCredentials()
      Specified by:
      getCredentials in interface org.apereo.cas.authentication.AuthenticationTransaction
    • getAuthentications

      public Collection<org.apereo.cas.authentication.Authentication> getAuthentications()
      Specified by:
      getAuthentications in interface org.apereo.cas.authentication.AuthenticationTransaction
    • toString

      public String toString()
      Overrides:
      toString in class Object