Class ClientCredentialSet

java.lang.Object
io.github.mastodonContentMover.ClientCredentialSet

public class ClientCredentialSet extends Object
Holds in an XML-persistable object a client-key and client-secret pair that grants application-level API credentials for the tool with a Mastodon instance.

Since:
0.01.00
See Also:
  • Constructor Details

    • ClientCredentialSet

      public ClientCredentialSet(String clientKey, String clientSecret)
      Creates a ClientCredentialSet object containing the specified client-key and client-secret pair.

      Parameters:
      clientKey - a client-key for the tool on a Mastodon instance
      clientSecret - a client-secret for the tool on a Mastodon instance

      Since:
      0.01.00
  • Method Details

    • getClientKey

      public String getClientKey()
      Retrieves the client-key that, together with a client-secret, grants application-level API access token for this tool on a Mastodon instance.

      Returns:
      a client-key for the tool on a Mastodon instance
      Since:
      0.01.00
    • getClientSecret

      public String getClientSecret()
      Retrieves the client-secret that, together with a client-key, grants application-level API access token for this tool on a Mastodon instance.

      Returns:
      a client-secret for the tool on a Mastodon instance
      Since:
      0.01.00