Class SimpleUserPrincipal
- java.lang.Object
-
- com.github.robtimus.filesystems.attribute.SimpleUserPrincipal
-
- All Implemented Interfaces:
UserPrincipal
,Principal
- Direct Known Subclasses:
SimpleGroupPrincipal
public class SimpleUserPrincipal extends Object implements UserPrincipal
AUserPrincipal
implementation that simply stores a name.- Author:
- Rob Spoor
-
-
Constructor Summary
Constructors Constructor Description SimpleUserPrincipal(String name)
Creates a new user principal.
-
-
-
Constructor Detail
-
SimpleUserPrincipal
public SimpleUserPrincipal(String name)
Creates a new user principal.- Parameters:
name
- The name of the user principal.- Throws:
NullPointerException
- If the given name isnull
.
-
-
Method Detail
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-