Class LocalServiceIdentityProvider
java.lang.Object
com.kingsrook.qqq.backend.core.serviceidentity.LocalServiceIdentityProvider
- All Implemented Interfaces:
QServiceIdentityProviderInterface
public class LocalServiceIdentityProvider
extends Object
implements QServiceIdentityProviderInterface
Service principals for deployments without an external identity provider
(TABLE_BASED, MOCK, fully anonymous). The session holds exactly the
principal's declared local permissions and security keys. Each minted
session is remembered (weakly, by identity) so a hand-made or deserialized
QServiceSession is never valid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWhether this session was minted here, in this JVM.sessionFor(QInstance qInstance, QServicePrincipalMetaData principal) A fresh session for the principal.
-
Constructor Details
-
LocalServiceIdentityProvider
public LocalServiceIdentityProvider()
-
-
Method Details
-
sessionFor
public QSession sessionFor(QInstance qInstance, QServicePrincipalMetaData principal) throws QAuthenticationException Description copied from interface:QServiceIdentityProviderInterfaceA fresh session for the principal. Throws when the principal is unavailable (no credentials, refused, revoked); never falls back to a system session.- Specified by:
sessionForin interfaceQServiceIdentityProviderInterface- Throws:
QAuthenticationException
-
isMinted
Whether this session was minted here, in this JVM.
-