public enum ShellPermission extends java.lang.Enum<ShellPermission> implements com.sshtools.common.permissions.PermissionType
Enum Constant and Description |
---|
CHANGE_PASSWORD |
EXECUTE |
SET_PASSWORD |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
toString() |
static ShellPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShellPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShellPermission EXECUTE
public static final ShellPermission CHANGE_PASSWORD
public static final ShellPermission SET_PASSWORD
public static ShellPermission[] values()
for (ShellPermission c : ShellPermission.values()) System.out.println(c);
public static ShellPermission valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ShellPermission>
public java.lang.String getName()
getName
in interface com.sshtools.common.permissions.PermissionType
Copyright © 2024. All rights reserved.