Top Description Inners Fields Constructors Methods
sun.nio.fs

public Class UnixUserPrincipals

extends Object
Class Inheritance
Imports
java.nio.file.attribute.*, java.io.IOException

Unix implementation of java.nio.file.attribute.UserPrincipal

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final UnixUserPrincipals.User
pack-priv static final UnixUserPrincipals.User
pack-priv static final UnixUserPrincipals.User

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static UnixUserPrincipals.User
public static UnixUserPrincipals.Group
fromGid(int gid)

public static UnixUserPrincipals.User
fromUid(int uid)

pack-priv static GroupPrincipal
private static int
lookupName(String name, boolean isGroup)

pack-priv static UserPrincipal
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SPECIAL_EVERYONEback to summary
pack-priv static final UnixUserPrincipals.User SPECIAL_EVERYONE
SPECIAL_GROUPback to summary
pack-priv static final UnixUserPrincipals.User SPECIAL_GROUP
SPECIAL_OWNERback to summary
pack-priv static final UnixUserPrincipals.User SPECIAL_OWNER

Constructor Detail

UnixUserPrincipalsback to summary
public UnixUserPrincipals()

Method Detail

createSpecialback to summary
private static UnixUserPrincipals.User createSpecial(String name)
fromGidback to summary
public static UnixUserPrincipals.Group fromGid(int gid)
fromUidback to summary
public static UnixUserPrincipals.User fromUid(int uid)
lookupGroupback to summary
pack-priv static GroupPrincipal lookupGroup(String group) throws IOException
lookupNameback to summary
private static int lookupName(String name, boolean isGroup) throws IOException
lookupUserback to summary
pack-priv static UserPrincipal lookupUser(String name) throws IOException
sun.nio.fs back to summary

pack-priv Class UnixUserPrincipals.Group

extends User
implements GroupPrincipal
Class Inheritance
All Implemented Interfaces
java.nio.file.attribute.GroupPrincipal, java.nio.file.attribute.UserPrincipal, java.security.Principal

Constructor Summary

AccessConstructor and Description
pack-priv
Group(int id, String name)

Method Summary

Inherited from sun.nio.fs.UnixUserPrincipals.User:
equalsgetNamegidhashCodetoStringuid

Constructor Detail

Groupback to summary
pack-priv Group(int id, String name)
sun.nio.fs back to summary

pack-priv Class UnixUserPrincipals.User

extends Object
implements UserPrincipal
Class Inheritance
All Implemented Interfaces
java.nio.file.attribute.UserPrincipal, java.security.Principal
Known Direct Subclasses
sun.nio.fs.UnixUserPrincipals.Group

Field Summary

Modifier and TypeField and Description
private final int
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
private
User(int id, boolean isGroup, String name)

pack-priv
User(int id, String name)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
Principal to compare with.
obj
)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Compares this Principal to the specified object.

public String
getName()

Implements java.security.Principal.getName.

Returns the name of this Principal.

pack-priv int
gid()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Returns a hashcode for this Principal.

public String
toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Returns a string representation of this Principal.

pack-priv int
uid()

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

idback to summary
private final int id
isGroupback to summary
private final boolean isGroup
nameback to summary
private final String name

Constructor Detail

Userback to summary
private User(int id, boolean isGroup, String name)
Userback to summary
pack-priv User(int id, String name)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.security.Principal.equals.

Doc from java.security.Principal.equals.

Compares this Principal to the specified object. Returns true if the object passed in matches the Principal represented by the implementation of this interface.

Parameters
obj:Object

Principal to compare with.

Returns:boolean

true if the Principal passed in is the same as that encapsulated by this Principal, and false otherwise.

Annotations
@Override
getNameback to summary
public String getName()

Implements java.security.Principal.getName.

Doc from java.security.Principal.getName.

Returns the name of this Principal.

Returns:String

the name of this Principal.

Annotations
@Override
gidback to summary
pack-priv int gid()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.security.Principal.hashCode.

Doc from java.security.Principal.hashCode.

Returns a hashcode for this Principal.

Returns:int

a hashcode for this Principal

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Doc from java.security.Principal.toString.

Returns a string representation of this Principal.

Returns:String

a string representation of this Principal.

Annotations
@Override
uidback to summary
pack-priv int uid()