Package org.apache.sshd.sftp.common
Enum SftpUniversalOwnerAndGroup
- java.lang.Object
-
- java.lang.Enum<SftpUniversalOwnerAndGroup>
-
- org.apache.sshd.sftp.common.SftpUniversalOwnerAndGroup
-
- All Implemented Interfaces:
Serializable,Comparable<SftpUniversalOwnerAndGroup>,NamedResource
public enum SftpUniversalOwnerAndGroup extends Enum<SftpUniversalOwnerAndGroup> implements NamedResource
Some universal identifiers used in owner and/or group specification strings- Author:
- Apache MINA SSHD Project
- See Also:
- SFTP ACL
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AnonymousAuthenticatedBatchDialupEveryoneGroupInteractiveNetworkOwnerService
-
Field Summary
Fields Modifier and Type Field Description static Set<SftpUniversalOwnerAndGroup>VALUES-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SftpUniversalOwnerAndGroupfromName(String name)StringgetName()StringtoString()static SftpUniversalOwnerAndGroupvalueOf(String name)Returns the enum constant of this type with the specified name.static SftpUniversalOwnerAndGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Owner
public static final SftpUniversalOwnerAndGroup Owner
-
Group
public static final SftpUniversalOwnerAndGroup Group
-
Everyone
public static final SftpUniversalOwnerAndGroup Everyone
-
Interactive
public static final SftpUniversalOwnerAndGroup Interactive
-
Network
public static final SftpUniversalOwnerAndGroup Network
-
Dialup
public static final SftpUniversalOwnerAndGroup Dialup
-
Batch
public static final SftpUniversalOwnerAndGroup Batch
-
Anonymous
public static final SftpUniversalOwnerAndGroup Anonymous
-
Authenticated
public static final SftpUniversalOwnerAndGroup Authenticated
-
Service
public static final SftpUniversalOwnerAndGroup Service
-
-
Field Detail
-
VALUES
public static final Set<SftpUniversalOwnerAndGroup> VALUES
-
-
Method Detail
-
values
public static SftpUniversalOwnerAndGroup[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SftpUniversalOwnerAndGroup c : SftpUniversalOwnerAndGroup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SftpUniversalOwnerAndGroup valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
- Specified by:
getNamein interfaceNamedResource
-
toString
public String toString()
- Overrides:
toStringin classEnum<SftpUniversalOwnerAndGroup>
-
fromName
public static SftpUniversalOwnerAndGroup fromName(String name)
-
-