public class StatelessAdminRestriction extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StatelessAdminRestriction.SuperUserDelegate
Responsible for answering the question of whether some token represents an administrator user.
|
Constructor and Description |
---|
StatelessAdminRestriction(StatelessAdminRestriction.SuperUserDelegate delegate,
StatelessSessionManager factory) |
Modifier and Type | Method and Description |
---|---|
static StatelessAdminRestriction.SuperUserDelegate |
createAuthDDelegate()
Used to generate a singleton SuperUserDelegate whose AuthD instance is lazily loaded
and which is used to verify the administrative nature of users passed in.
|
boolean |
isRestricted(SSOToken token)
Indicates if a given SSOToken should be restricted when used in the
context of a Stateless Session.
|
boolean |
isRestricted(String userDN)
Indicates if the given User DN should be restricted when used in the
context of Stateless Sessions.
|
@Inject public StatelessAdminRestriction(StatelessAdminRestriction.SuperUserDelegate delegate, StatelessSessionManager factory)
public boolean isRestricted(SSOToken token) throws SessionException
token
- Non null SSOToken.SessionException
- If there was an error whilst attempting to verify
if the SSOToken represented a Stateless Session then this exception will
be thrown.public boolean isRestricted(String userDN)
userDN
- Non null user DN.SSOToken.getPrincipal()
,
Principal.getName()
public static StatelessAdminRestriction.SuperUserDelegate createAuthDDelegate()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.