Package tech.greenfield.vertx.irked.auth
Class BasicAuthorizationToken
- java.lang.Object
-
- tech.greenfield.vertx.irked.auth.AuthorizationToken
-
- tech.greenfield.vertx.irked.auth.BasicAuthorizationToken
-
public class BasicAuthorizationToken extends AuthorizationToken
Implementation of the standard RFC 7617 Bearer authentication scheme token This implementation parses the token and makes the user name and password available through the API.- Author:
- odeda
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class tech.greenfield.vertx.irked.auth.AuthorizationToken
AuthorizationToken.TokenTypes
-
-
Constructor Summary
Constructors Constructor Description BasicAuthorizationToken()BasicAuthorizationToken(String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()StringgetUsername()protected booleansupports(String type)Check whether an AuthorizationToken implementation supports the speciefied IANA HTTP Authentication Scheme Nameprotected AuthorizationTokenupdate(String type, String token)Update a service-loader loaded implementation with the actual details
-
-
-
Constructor Detail
-
BasicAuthorizationToken
public BasicAuthorizationToken()
-
BasicAuthorizationToken
public BasicAuthorizationToken(String token)
-
-
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
-
update
protected AuthorizationToken update(String type, String token)
Description copied from class:AuthorizationTokenUpdate a service-loader loaded implementation with the actual details- Overrides:
updatein classAuthorizationToken- Parameters:
type- IANA HTTP Authentication Scheme Nametoken- token text- Returns:
- itself for fluent calling
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
-