Package com.google.common.jimfs
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 class
GroupPrincipal
implementation.(package private) static final class
UserPrincipal
implementation.private static class
Base class forUserPrincipal
andGroupPrincipal
implementations. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static GroupPrincipal
createGroupPrincipal
(String name) Creates aGroupPrincipal
for the given group name.(package private) static UserPrincipal
createUserPrincipal
(String name) Creates aUserPrincipal
for 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:
lookupPrincipalByName
in classUserPrincipalLookupService
-
lookupPrincipalByGroupName
- Specified by:
lookupPrincipalByGroupName
in classUserPrincipalLookupService
- Throws:
IOException
-
createUserPrincipal
Creates aUserPrincipal
for the given user name. -
createGroupPrincipal
Creates aGroupPrincipal
for the given group name.
-