Package com.sodius.oslc.client.oauth
Interface Friend
- All Known Implementing Classes:
Friend
public interface Friend
Provides information on a friend server on which OAuth connection is to realize.
Clients may implement this interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the secret associated with the consumer key for contacting the friend application using OAuth 1.0a protocolReturns the consumer key (a.k.a.default StringReturns the identifier of the friend.Returns the root services URL of the friend.default StringgetTitle()Returns the title of the friend, which defaults to the host name of the root services location.
-
Method Details
-
getTitle
Returns the title of the friend, which defaults to the host name of the root services location.- Returns:
- the title of the friend
- Since:
- 1.14.0
-
getIdentifier
Returns the identifier of the friend. Default implementation is to return the root services URL. Callers should not assume anything about the actual format of the identifier, and rather callgetRootServices()if that URL is specifically needed.- Returns:
- the identifier of the friend
- Since:
- 3.5.0
-
getRootServices
URI getRootServices()Returns the root services URL of the friend.- Returns:
- the root services URL of the friend.
-
getConsumerToken
String getConsumerToken()Returns the consumer key (a.k.a. token) to use for contacting the friend application using OAuth 1.0a protocol- Returns:
- the consumer key.
-
getConsumerSecret
String getConsumerSecret()Return the secret associated with the consumer key for contacting the friend application using OAuth 1.0a protocol- Returns:
- the consumer secret.
-