Spring Social

org.springframework.social
Interface ApiBinding

All Known Implementing Classes:
AbstractOAuth1ApiBinding, AbstractOAuth2ApiBinding

public interface ApiBinding

Base interface that may be implemented by API bindings. Provides a simple boolean tester that can be used to determine if the API binding has been authorized for a specific user.

Author:
Keith Donald

Method Summary
 boolean isAuthorized()
          Returns true if this API binding has been authorized on behalf of a specific user.
 

Method Detail

isAuthorized

boolean isAuthorized()
Returns true if this API binding has been authorized on behalf of a specific user. If so, calls to the API are signed with the user's authorization credentials, indicating an application is invoking the API on a user's behalf. If not, API calls do not contain any user authorization information. Callers can use this status flag to determine if API operations requiring authorization can be invoked.

See Also:
MissingAuthorizationException

Spring Social