Class ApiKeyAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springaicommunity.mcp.security.server.apikey.authentication.ApiKeyAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
@Transient
public class ApiKeyAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- Author:
- Daniel Garnier-Moiroux
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiKeyAuthenticationTokenauthenticated(ApiKeyEntity principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) @Nullable ApiKeygetName()@Nullable ApiKeyEntitystatic ApiKeyAuthenticationTokenunauthenticated(ApiKey apiKey) Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Method Details
-
unauthenticated
-
authenticated
public static ApiKeyAuthenticationToken authenticated(ApiKeyEntity principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) -
getCredentials
-
getPrincipal
-
getName
-