public static class VmsLoginService.VmsUser
extends java.lang.Object
implements org.eclipse.jetty.server.UserIdentity, java.security.Principal
Constructor and Description |
---|
VmsUser(java.lang.String usrnam)
Create valid instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
javax.security.auth.Subject |
getSubject() |
java.security.Principal |
getUserPrincipal() |
boolean |
isUserInRole(java.lang.String role,
org.eclipse.jetty.server.UserIdentity.Scope scope) |
boolean |
isValid()
Check valid status.
|
void |
setValid(boolean valid)
Set valid status.
|
public VmsUser(java.lang.String usrnam)
usrnam
- usernamepublic javax.security.auth.Subject getSubject()
getSubject
in interface org.eclipse.jetty.server.UserIdentity
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface org.eclipse.jetty.server.UserIdentity
public boolean isUserInRole(java.lang.String role, org.eclipse.jetty.server.UserIdentity.Scope scope)
isUserInRole
in interface org.eclipse.jetty.server.UserIdentity
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean isValid()
public void setValid(boolean valid)
valid
- new valid status