| Constructor and Description |
|---|
A2WrapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticateService(String certificate)
Authenticates a DRIVER service
|
String |
authenticateUser(String email,
String password)
Authenticates a DRIVER user.
|
boolean |
authorizeAction(String resource,
String action,
String contextId)
Requests authorization for a given action.
|
String |
createSecurityContextChain(String contextIdA,
String contextIdB)
Chains 2 security contexts.
|
void |
invalidate(String contextId)
Invalidates the given security context.
|
void |
setLocator(ServiceLocator<eu.dnetlib.api.enabling.A2Service> locator) |
public void setLocator(ServiceLocator<eu.dnetlib.api.enabling.A2Service> locator)
public String authenticateService(String certificate)
A2WrapperauthenticateService in interface A2Wrapperpublic String authenticateUser(String email, String password)
A2WrapperauthenticateUser in interface A2Wrapperpublic boolean authorizeAction(String resource, String action, String contextId)
A2WrapperauthorizeAction in interface A2Wrapperpublic String createSecurityContextChain(String contextIdA, String contextIdB)
A2WrappercreateSecurityContextChain in interface A2Wrapperpublic void invalidate(String contextId)
A2Wrapperinvalidate in interface A2WrappercontextId - the id of the context to invalidate.Copyright © 2022. All rights reserved.