Package tech.greenfield.vertx.irked.auth
Class OAuthAuthorizationToken
- java.lang.Object
-
- tech.greenfield.vertx.irked.auth.AuthorizationToken
-
- tech.greenfield.vertx.irked.auth.ParameterEncodedAuthorizationToken
-
- tech.greenfield.vertx.irked.auth.OAuthAuthorizationToken
-
public class OAuthAuthorizationToken extends ParameterEncodedAuthorizationToken
Implementation of the standard RFC 5849 OAuth authentication scheme token. The token parameters are available from theParameterEncodedAuthorizationToken.getParameter(String)method, though currently no validation is performed to make sure that all required fields are present.- Author:
- odeda
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class tech.greenfield.vertx.irked.auth.AuthorizationToken
AuthorizationToken.TokenTypes
-
-
Constructor Summary
Constructors Constructor Description OAuthAuthorizationToken()C'tor for unmarshaling for a headerless requestOAuthAuthorizationToken(String token)C'tor for unmarshaling from an authorization header
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleansupports(String type)Check whether an AuthorizationToken implementation supports the speciefied IANA HTTP Authentication Scheme Name-
Methods inherited from class tech.greenfield.vertx.irked.auth.ParameterEncodedAuthorizationToken
getParameter, parseParameters, toHex, update
-
-
-
-
Constructor Detail
-
OAuthAuthorizationToken
public OAuthAuthorizationToken()
C'tor for unmarshaling for a headerless request
-
OAuthAuthorizationToken
public OAuthAuthorizationToken(String token)
C'tor for unmarshaling from an authorization header- Parameters:
token- The OAuth 1.0 token for this authorization
-
-
Method Detail
-
supports
protected boolean supports(String type)
Description copied from class:AuthorizationTokenCheck whether an AuthorizationToken implementation supports the speciefied IANA HTTP Authentication Scheme Name- Overrides:
supportsin classAuthorizationToken- Parameters:
type- IANA HTTP Authentication Scheme Name- Returns:
- whether this implementation supports the specified name
-
-