public class AuthenticatorUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APIM_ADMIN_PERMISSION |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
authorizeUser(javax.ws.rs.core.HttpHeaders headers)
Checks whether received credentials for accessing API is authorized for exporting and
importing APIs
|
static String |
getAuthenticatedUserName()
Retrieve authenticated user name for the current session
|
public static final String APIM_ADMIN_PERMISSION
public static javax.ws.rs.core.Response authorizeUser(javax.ws.rs.core.HttpHeaders headers)
throws APIExportException
headers - HTTP headers of the received requestAPIExportException - If an error occurs while authorizing current userpublic static String getAuthenticatedUserName()
Copyright © 2018 WSO2 Inc. All rights reserved.