Class TokenEndpoint
java.lang.Object
com.codename1.backend.security.oauth2.client.credentials.TokenEndpoint
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA token endpoint's answer.static interfaceSends one form-encoded POST. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longLifetime assumed for a token whose response gives noexpires_in.static final TokenEndpoint.TransportThe transport every grant uses unless it is given another:Web. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_LIFETIME_SECONDS
public static final long DEFAULT_LIFETIME_SECONDSLifetime assumed for a token whose response gives noexpires_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
The transport every grant uses unless it is given another:Web.
-
-
Constructor Details
-
TokenEndpoint
-
-
Method Details
-
getUri
-