public class SpnegoUserIdentity extends java.lang.Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity
UNAUTHENTICATED_IDENTITY
Constructor and Description |
---|
SpnegoUserIdentity(javax.security.auth.Subject subject,
java.security.Principal principal,
UserIdentity roleDelegate) |
Modifier and Type | Method and Description |
---|---|
javax.security.auth.Subject |
getSubject() |
java.security.Principal |
getUserPrincipal() |
boolean |
isEstablished() |
boolean |
isUserInRole(java.lang.String role,
UserIdentity.Scope scope)
Check if the user is in a role.
|
public SpnegoUserIdentity(javax.security.auth.Subject subject, java.security.Principal principal, UserIdentity roleDelegate)
public javax.security.auth.Subject getSubject()
getSubject
in interface UserIdentity
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface UserIdentity
public boolean isUserInRole(java.lang.String role, UserIdentity.Scope scope)
UserIdentity
isUserInRole
in interface UserIdentity
role
- A role name.scope
- the scopepublic boolean isEstablished()
Copyright © 1995–2023 Webtide. All rights reserved.