Package com.ocient.auth
Class OpenIDAuthenticators.DeviceAuthorizationGrant<T extends Token>
java.lang.Object
com.ocient.auth.OpenIDAuthenticators.DeviceAuthorizationGrant<T>
- Enclosing class:
- OpenIDAuthenticators
public static class OpenIDAuthenticators.DeviceAuthorizationGrant<T extends Token> extends Object
The Device Authorization Grant is an extension that enables devices with no
browser or limited input capability to use OAuth.
-
Constructor Summary
Constructors Constructor Description DeviceAuthorizationGrant(String verificationUriComplete, String verificationUri, String userCode, OpenIDAuthenticators.TokenPoller<T> getToken) -
Method Summary
Modifier and Type Method Description TgetToken(long timeoutMillis)Polls the issuer's /token endpoint for the authorization response.StringgetUserCode()StringgetVerificationURI()StringgetVerificationURIComplete()
-
Constructor Details
-
DeviceAuthorizationGrant
public DeviceAuthorizationGrant(String verificationUriComplete, String verificationUri, String userCode, OpenIDAuthenticators.TokenPoller<T> getToken)
-
-
Method Details
-
getUserCode
-
getVerificationURI
-
getVerificationURIComplete
-
getToken
Polls the issuer's /token endpoint for the authorization response.
-