Class Friends

java.lang.Object
com.sodius.oslc.client.oauth.Friends

public class Friends extends Object
Provides facilities to instantiate a FriendProvider and to parse root services resources.
  • Method Details

    • createFriend

      public static Friend createFriend(URI rootServices, String consumerToken, String consumerSecret)
      Creates a friend.
      Parameters:
      rootServices - the friend's rootservices
      consumerToken - 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 title
      rootServices - the friend's rootservices
      consumerToken - 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

      public static FriendProvider createFriendProvider(Friend... friends)
      Returns a provider for the specified friends.
      Parameters:
      friends - some friends.
      Returns:
      a provider for those friends.
    • createFriendProvider

      public static FriendProvider createFriendProvider(Collection<? extends Friend> friends)
      Returns a provider for the specified friends.
      Parameters:
      friends - some friends.
      Returns:
      a provider for those friends.