Package org.ehrbase.tenant
Class DefaultTenantAuthentication
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.ehrbase.tenant.DefaultTenantAuthentication
- All Implemented Interfaces:
Serializable,Principal,TenantAuthentication<String>,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class DefaultTenantAuthentication
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements TenantAuthentication<String>
- See Also:
-
Field Summary
FieldsFields inherited from interface org.ehrbase.api.tenant.TenantAuthentication
DEFAULT_TENANT_ID -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DefaultTenantAuthenticationstatic <T> DefaultTenantAuthenticationof(TenantAuthentication<T> auth, org.springframework.core.convert.converter.Converter<T, String> converter) static <T> DefaultTenantAuthenticationMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Field Details
-
TENANT_CLAIM
- See Also:
-
-
Method Details
-
of
public static <T> DefaultTenantAuthentication of(TenantAuthentication<T> auth, org.springframework.core.convert.converter.Converter<T, String> converter) -
of
-
ofToken
-
getTenantId
- Specified by:
getTenantIdin interfaceTenantAuthentication<String>
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
getAuthentication
- Specified by:
getAuthenticationin interfaceTenantAuthentication<String>
-