public class AuthorizationResponse
extends java.lang.Object
An outgoing Authorization Response is to be created by the user interface when an authorization request has been received from the network. The user interface or any other bundle responsible of handling such responses is to implement the AuthoizationHandler interface and register itself with a protocol provider. Whenever a response needs to be sent the protocol provider would ask the the AuthorizationHandler to create one through the processAuthorizationRequest() method.
Incoming Authorization responses are delivered to the AuthorizationHandler implementation through the AuthorizationHandler.processAuthorizationResponse() method.
Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationResponse.AuthorizationResponseCode
Authorization response codes represent unambiguous indication of the way
a user or a remote party have acted upon an authorization request.
|
Modifier and Type | Field and Description |
---|---|
static AuthorizationResponse.AuthorizationResponseCode |
ACCEPT
Indicates that the source authorization request which this response is
about has been accepted and that the requestor may now proceed to adding
the user to their contact list.
|
static AuthorizationResponse.AuthorizationResponseCode |
IGNORE
Indicates that source authorization request which this response is about
has been ignored and that no other indication will be sent to the
requestor.
|
static AuthorizationResponse.AuthorizationResponseCode |
REJECT
Indicates that source authorization request which this response is about
has been rejected.
|
Constructor and Description |
---|
AuthorizationResponse(AuthorizationResponse.AuthorizationResponseCode responseCode,
java.lang.String reason)
Creates an instance of an AuthorizationResponse with the specified
responseCode and reason.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReason()
Returns a String containing additional explanations (might also be empty)
of this response.
|
AuthorizationResponse.AuthorizationResponseCode |
getResponseCode()
Returns the response code that unambiguously represents the sense of this
response.
|
public static final AuthorizationResponse.AuthorizationResponseCode ACCEPT
public static final AuthorizationResponse.AuthorizationResponseCode REJECT
public static final AuthorizationResponse.AuthorizationResponseCode IGNORE
public AuthorizationResponse(AuthorizationResponse.AuthorizationResponseCode responseCode, java.lang.String reason)
responseCode
- AuthorizationResponseCodereason
- Stringpublic java.lang.String getReason()
public AuthorizationResponse.AuthorizationResponseCode getResponseCode()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.