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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getConsumerSecret()
Return the secret associated with the consumer key for contacting the friend application using OAuth 1.0a protocolString
getConsumerToken()
Returns the consumer key (a.k.a.default String
getIdentifier()
Returns the identifier of the friend.URI
getRootServices()
Returns the root services URL of the friend.default String
getTitle()
Returns the title of the friend, which defaults to the host name of the root services location.
-
-
-
Method Detail
-
getTitle
default String 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
default String 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.
-
-