Class ChallengeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.authentication.modules.radius.client.ChallengeException
-
- All Implemented Interfaces:
Serializable
public class ChallengeException extends Exception
Used for handling received challenge responses from radius servers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChallengeException(AccessChallenge res)Constructs an instance from the received response packet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSetgetAttributeSet()Returns the set of attributes in this packet.StringgetReplyMessage()Returns the value of the first incurred reply message attribute contained in the packet.StringgetState()Returns the state value for the packet as contained in the nested state attribute.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ChallengeException
public ChallengeException(AccessChallenge res)
Constructs an instance from the received response packet.- Parameters:
res- the response packet.
-
-
Method Detail
-
getAttributeSet
public AttributeSet getAttributeSet()
Returns the set of attributes in this packet.- Returns:
- the set of attributes.
-
getState
public String getState()
Returns the state value for the packet as contained in the nested state attribute.- Returns:
- the state value.
-
getReplyMessage
public String getReplyMessage()
Returns the value of the first incurred reply message attribute contained in the packet.- Returns:
- the message string or the empty string if not found
-
-