Package org.ehrbase.tenant.extraction
Class AuthenticatedExtractionStrategy<A extends org.springframework.security.core.Authentication>
java.lang.Object
org.ehrbase.tenant.extraction.AuthenticatedExtractionStrategy<A>
- All Implemented Interfaces:
TenantIdExtractionStrategy<String>
- Direct Known Subclasses:
AuthenticatedExtractionStrategy.AuthenticationExtractionStrategy,AuthenticatedExtractionStrategy.TokenAuthenticatedExtractionStrategy
public abstract class AuthenticatedExtractionStrategy<A extends org.springframework.security.core.Authentication>
extends Object
implements TenantIdExtractionStrategy<String>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAuthenticatedExtractionStrategy(Predicate<org.springframework.security.core.Authentication> predicate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ehrbase.api.tenant.TenantIdExtractionStrategy
extractWithPrior, priority
-
Constructor Details
-
AuthenticatedExtractionStrategy
protected AuthenticatedExtractionStrategy(Predicate<org.springframework.security.core.Authentication> predicate)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceTenantIdExtractionStrategy<A extends org.springframework.security.core.Authentication>
-
extract
- Specified by:
extractin interfaceTenantIdExtractionStrategy<A extends org.springframework.security.core.Authentication>
-