Enum SftpUniversalOwnerAndGroup
- java.lang.Object
-
- java.lang.Enum<SftpUniversalOwnerAndGroup>
-
- org.apache.sshd.common.subsystem.sftp.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 Anonymous
Authenticated
Batch
Dialup
Everyone
Group
Interactive
Network
Owner
Service
-
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 SftpUniversalOwnerAndGroup
fromName(String name)
String
getName()
String
toString()
static SftpUniversalOwnerAndGroup
valueOf(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:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
toString
public String toString()
- Overrides:
toString
in classEnum<SftpUniversalOwnerAndGroup>
-
fromName
public static SftpUniversalOwnerAndGroup fromName(String name)
-
-