fm.liveswitch.stun.UnauthorizedStunError Class Reference

401 Unauthorized. More...

Public Member Functions

String getDescription ()
 Gets the description for this fm.liveswitch.stun.Error. More...
 
fm.liveswitch.stun.NonceAttribute getNonce ()
 Gets the nonce attribute. More...
 
fm.liveswitch.stun.RealmAttribute getRealm ()
 Gets the realm attribute. More...
 
 UnauthorizedStunError ()
 Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class. More...
 
 UnauthorizedStunError (String message)
 Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class. More...
 
 UnauthorizedStunError (fm.liveswitch.stun.NonceAttribute nonce, fm.liveswitch.stun.RealmAttribute realm, String message)
 Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class. More...
 
- Public Member Functions inherited from fm.liveswitch.stun.Error
 Error (fm.liveswitch.ErrorCode code, String message)
 Initializes a new instance of the fm.liveswitch.stun.Error class. More...
 
int getStunCode ()
 Gets the STUN code. More...
 
int getStunErrorCode ()
 Gets the STUN code. More...
 
- Public Member Functions inherited from fm.liveswitch.Error
 Error ()
 Initializes a new instance of the fm.liveswitch.Error class. More...
 
 Error (fm.liveswitch.ErrorCode code, java.lang.Exception exception)
 Initializes a new instance of the fm.liveswitch.Error class. More...
 
fm.liveswitch.ErrorCode getCode ()
 Gets the code. More...
 
int getCodeValue ()
 Gets the code. More...
 
fm.liveswitch.ErrorCode getErrorCode ()
 Gets the code. More...
 
java.lang.Exception getException ()
 Gets the exception. More...
 
String getMessage ()
 Gets the message. More...
 
void setCode (fm.liveswitch.ErrorCode value)
 Sets the code. More...
 
void setCodeValue (int value)
 Sets the code. More...
 
void setErrorCode (fm.liveswitch.ErrorCode value)
 Sets the code. More...
 
void setException (java.lang.Exception value)
 Sets the exception. More...
 
void setMessage (String value)
 Sets the message. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
String toString ()
 Returns the string representation of this error. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fm.liveswitch.stun.Error
static fm.liveswitch.Error createStunError (int code, fm.liveswitch.stun.Message message)
 Creates error for the given error code and with a given message. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Error
static fm.liveswitch.Error fromJson (String errorJson)
 Deserializes an instance from JSON. More...
 
static String toJson (final fm.liveswitch.Error error)
 Serializes an instance to JSON. More...
 

Detailed Description

401 Unauthorized.

RFC5389. Indicates that the request did not contain the correct credentials to proceed. The client should retry the request with proper credentials.

Constructor & Destructor Documentation

◆ UnauthorizedStunError() [1/3]

fm.liveswitch.stun.UnauthorizedStunError.UnauthorizedStunError ( )

Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class.

◆ UnauthorizedStunError() [2/3]

fm.liveswitch.stun.UnauthorizedStunError.UnauthorizedStunError ( String  message)

Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class.

Parameters
messageThe message.

◆ UnauthorizedStunError() [3/3]

fm.liveswitch.stun.UnauthorizedStunError.UnauthorizedStunError ( fm.liveswitch.stun.NonceAttribute  nonce,
fm.liveswitch.stun.RealmAttribute  realm,
String  message 
)

Initializes a new instance of the fm.liveswitch.stun.UnauthorizedStunError class.

Parameters
nonceThe nonce attribute.
realmThe realm attribute.
messageThe message

Member Function Documentation

◆ getDescription()

String fm.liveswitch.stun.UnauthorizedStunError.getDescription ( )

Gets the description for this fm.liveswitch.stun.Error.

Reimplemented from fm.liveswitch.Error.

◆ getNonce()

fm.liveswitch.stun.NonceAttribute fm.liveswitch.stun.UnauthorizedStunError.getNonce ( )

Gets the nonce attribute.

◆ getRealm()

fm.liveswitch.stun.RealmAttribute fm.liveswitch.stun.UnauthorizedStunError.getRealm ( )

Gets the realm attribute.