Class UserLookupService
java.lang.Object
java.nio.file.attribute.UserPrincipalLookupService
com.google.common.jimfs.UserLookupService
UserPrincipalLookupService implementation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classGroupPrincipalimplementation.(package private) static final classUserPrincipalimplementation.private static classBase class forUserPrincipalandGroupPrincipalimplementations. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static GroupPrincipalcreateGroupPrincipal(String name) Creates aGroupPrincipalfor the given group name.(package private) static UserPrincipalcreateUserPrincipal(String name) Creates aUserPrincipalfor the given user name.lookupPrincipalByGroupName(String group) lookupPrincipalByName(String name)
-
Field Details
-
supportsGroups
private final boolean supportsGroups
-
-
Constructor Details
-
UserLookupService
public UserLookupService(boolean supportsGroups)
-
-
Method Details
-
lookupPrincipalByName
- Specified by:
lookupPrincipalByNamein classUserPrincipalLookupService
-
lookupPrincipalByGroupName
- Specified by:
lookupPrincipalByGroupNamein classUserPrincipalLookupService- Throws:
IOException
-
createUserPrincipal
Creates aUserPrincipalfor the given user name. -
createGroupPrincipal
Creates aGroupPrincipalfor the given group name.
-