Package com.sodius.oslc.client.oauth
Class Friends
java.lang.Object
com.sodius.oslc.client.oauth.Friends
Provides facilities to instantiate a FriendProvider and to parse root services resources.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FriendcreateFriend(String title, URI rootServices, String consumerToken, String consumerSecret) Creates a friend.static FriendcreateFriend(URI rootServices, String consumerToken, String consumerSecret) Creates a friend.static FriendProvidercreateFriendProvider(Friend... friends) Returns a provider for the specified friends.static FriendProvidercreateFriendProvider(Collection<? extends Friend> friends) Returns a provider for the specified friends.
-
Method Details
-
createFriend
Creates a friend.- Parameters:
rootServices- the friend's rootservicesconsumerToken- the consumer token declared on the friend to grant access to a client.consumerSecret- the consumer secret declared on the friend to grant access to a client.- Returns:
- a friend wrapping the specified information.
-
createFriend
public static Friend createFriend(String title, URI rootServices, String consumerToken, String consumerSecret) Creates a friend.- Parameters:
title- the friend's titlerootServices- the friend's rootservicesconsumerToken- the consumer token declared on the friend to grant access to a client.consumerSecret- the consumer secret declared on the friend to grant access to a client.- Returns:
- a friend wrapping the specified information.
- Since:
- 1.14.0
-
createFriendProvider
Returns a provider for the specified friends.- Parameters:
friends- some friends.- Returns:
- a provider for those friends.
-
createFriendProvider
Returns a provider for the specified friends.- Parameters:
friends- some friends.- Returns:
- a provider for those friends.
-