Class TokenEndpoint

java.lang.Object
com.codename1.backend.security.oauth2.client.credentials.TokenEndpoint

public final class TokenEndpoint extends Object

A token endpoint: where a grant posts its form, and how the answer is read.

The transport is replaceable so a grant can be exercised without a socket -- the tests and the native self-check post to an in-process fake and assert on the exact form that was sent.

  • Field Details

    • DEFAULT_LIFETIME_SECONDS

      public static final long DEFAULT_LIFETIME_SECONDS
      Lifetime assumed for a token whose response gives no expires_in. RFC 6749 leaves the default to the server; assuming a short one costs an extra exchange now and then, assuming a long one presents a dead token.
      See Also:
    • WEB

      public static final TokenEndpoint.Transport WEB
      The transport every grant uses unless it is given another: Web.
  • Constructor Details

  • Method Details

    • getUri

      public String getUri()