public enum SessionKeyGen extends java.lang.Enum<SessionKeyGen>
Enum Constant and Description |
---|
BOTH
Klíč relace bere ohled jak na název počítače, tak na jméno uživatele.
|
HOST_ONLY
Klíč relace je založen pouze na názvu počítače.
|
USER_ONLY
Klíč relace je založen pouze na jménu uživatele.
|
Modifier and Type | Method and Description |
---|---|
SessionKey |
getKey(java.lang.String hostName,
java.lang.String userName)
Vytvoří klíč daného typu.
|
static SessionKeyGen |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionKeyGen[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionKeyGen HOST_ONLY
public static final SessionKeyGen USER_ONLY
public static final SessionKeyGen BOTH
public static SessionKeyGen[] values()
for (SessionKeyGen c : SessionKeyGen.values()) System.out.println(c);
public static SessionKeyGen 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 SessionKey getKey(java.lang.String hostName, java.lang.String userName)
hostName
- název počítačeuserName
- jméno uživatele