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 Type
    Method
    Description
    Return the secret associated with the consumer key for contacting the friend application using OAuth 1.0a protocol
    Returns the consumer key (a.k.a.
    default String
    Returns the identifier of the friend.
    Returns the root services URL of the friend.
    default String
    Returns the title of the friend, which defaults to the host name of the root services location.
  • Method Details

    • 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 call getRootServices() 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.