public class SimpleUserPrincipal extends Object implements UserPrincipal
UserPrincipal
implementation that simply stores a name.Constructor and Description |
---|
SimpleUserPrincipal(String name)
Creates a new user principal.
|
public SimpleUserPrincipal(String name)
name
- The name of the user principal.NullPointerException
- If the given name is null
.public boolean equals(Object o)
public int hashCode()
Copyright © 2016–2023. All rights reserved.