Uses of Interface
java.nio.file.attribute.UserPrincipal
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.-
Uses of UserPrincipal in java.nio.file
Modifier and TypeMethodDescriptionstatic UserPrincipal
Files.getOwner(Path path, LinkOption... options)
Returns the owner of a file.Modifier and TypeMethodDescriptionstatic Path
Files.setOwner(Path path, UserPrincipal owner)
Updates the file owner. -
Uses of UserPrincipal in java.nio.file.attribute
Modifier and TypeInterfaceDescriptioninterface
AUserPrincipal
representing a group identity, used to determine access rights to objects in a file system.Modifier and TypeMethodDescriptionFileOwnerAttributeView.getOwner()
Read the file owner.abstract UserPrincipal
UserPrincipalLookupService.lookupPrincipalByName(String name)
Lookup a user principal by name.PosixFileAttributes.owner()
Returns the owner of the file.AclEntry.principal()
Returns the principal component.Modifier and TypeMethodDescriptionvoid
FileOwnerAttributeView.setOwner(UserPrincipal owner)
Updates the file owner.AclEntry.Builder.setPrincipal(UserPrincipal who)
Sets the principal component of this builder. -
Uses of UserPrincipal in jdk.net
Modifier and TypeMethodDescriptionUnixDomainPrincipal.user()
Returns the value of theuser
record component.ModifierConstructorDescriptionUnixDomainPrincipal(UserPrincipal user, GroupPrincipal group)
Creates a UnixDomainPrincipal.