Package sk.ipesoft.d2000.d2japi
Enum CreateSessionResponseState
- java.lang.Object
-
- java.lang.Enum<CreateSessionResponseState>
-
- sk.ipesoft.d2000.d2japi.CreateSessionResponseState
-
public enum CreateSessionResponseState extends java.lang.Enum<CreateSessionResponseState>
State ofCreateSessionResponse
instance.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description spnegoContinuation
Session creation requires SPNEGO token amendment.success
New Session created successfully.successWithSpnego
New session was created successfully and final SPNEGO token is available.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAbort()
boolean
hasSession()
New session is available throughCreateSessionResponse.getSession()
.boolean
hasToken()
SPNEGO token is available throughCreateSessionResponse.getSpnegoToken()
.static CreateSessionResponseState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CreateSessionResponseState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
success
public static final CreateSessionResponseState success
New Session created successfully. No SPNEGO token is available.
-
spnegoContinuation
public static final CreateSessionResponseState spnegoContinuation
Session creation requires SPNEGO token amendment.
-
successWithSpnego
public static final CreateSessionResponseState successWithSpnego
New session was created successfully and final SPNEGO token is available.
-
-
Method Detail
-
values
public static CreateSessionResponseState[] 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 (CreateSessionResponseState c : CreateSessionResponseState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreateSessionResponseState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
canAbort
public boolean canAbort()
You can use eitherCreateSessionResponse.abortSpnegoHandshake(java.lang.Throwable)
orCreateSessionResponse.sendSpnegoToken(byte[])
.- Returns:
-
hasSession
public boolean hasSession()
New session is available throughCreateSessionResponse.getSession()
.- Returns:
-
hasToken
public boolean hasToken()
SPNEGO token is available throughCreateSessionResponse.getSpnegoToken()
.- Returns:
-
-