public class AuthUtils extends Object
| Constructor and Description |
|---|
AuthUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encode64(String value) |
static AuthenticationDto |
getForAuthorizationHeader(String dtoName,
String authorizationValue) |
static AuthenticationDto |
getForBasic(String dtoName,
String userId,
String password)
DTO representing the use of authentication via HTTP Basic (RFC-7617)
|
public static AuthenticationDto getForBasic(String dtoName, String userId, String password)
dtoName - a name used to identify this id. Mainly needed for debugginguserId - the id of a userpassword - password for that userpublic static AuthenticationDto getForAuthorizationHeader(String dtoName, String authorizationValue)
Copyright © 2016–2019. All rights reserved.