Class WASurrogateAuthenticationService

java.lang.Object
org.apache.syncope.wa.starter.surrogate.WASurrogateAuthenticationService
All Implemented Interfaces:
org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService

public class WASurrogateAuthenticationService extends Object implements org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Logger
     
    protected final WARestClient
     

    Fields inherited from interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService

    AUTHENTICATION_ATTR_SURROGATE_ENABLED, AUTHENTICATION_ATTR_SURROGATE_PRINCIPAL, AUTHENTICATION_ATTR_SURROGATE_USER, BEAN_NAME, WILDCARD_ACCOUNT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canImpersonate(String surrogate, org.apereo.cas.authentication.principal.Principal principal, Optional<? extends org.apereo.cas.authentication.principal.Service> service)
     
    getImpersonationAccounts(String username, Optional<? extends org.apereo.cas.authentication.principal.Service> service)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService

    isWildcardedAccount, isWildcardedAccount
  • Field Details

    • LOG

      protected static final Logger LOG
    • waRestClient

      protected final WARestClient waRestClient
  • Constructor Details

    • WASurrogateAuthenticationService

      public WASurrogateAuthenticationService(WARestClient waRestClient)
  • Method Details

    • canImpersonate

      public boolean canImpersonate(String surrogate, org.apereo.cas.authentication.principal.Principal principal, Optional<? extends org.apereo.cas.authentication.principal.Service> service)
      Specified by:
      canImpersonate in interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
    • getImpersonationAccounts

      public Collection<String> getImpersonationAccounts(String username, Optional<? extends org.apereo.cas.authentication.principal.Service> service)
      Specified by:
      getImpersonationAccounts in interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService