@RestController(value="tokenControllerV2") @RequestMapping(value="/pa/token") public class TokenController extends Object
PowerAuth protocol versions:
| Constructor and Description |
|---|
TokenController() |
| Modifier and Type | Method and Description |
|---|---|
io.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.v2.TokenCreateResponse> |
createToken(io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.v2.TokenCreateRequest> request,
PowerAuthApiAuthentication authentication)
Create token.
|
io.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.v3.TokenRemoveResponse> |
removeToken(io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.v3.TokenRemoveRequest> request,
PowerAuthApiAuthentication authentication)
Remove token.
|
void |
setTokenServiceV2(TokenService tokenServiceV2) |
void |
setTokenServiceV3(TokenService tokenServiceV3) |
@Autowired public void setTokenServiceV2(TokenService tokenServiceV2)
@Autowired public void setTokenServiceV3(TokenService tokenServiceV3)
@RequestMapping(value="create",
method=POST)
public io.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.v2.TokenCreateResponse> createToken(@RequestBody
io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.v2.TokenCreateRequest> request,
PowerAuthApiAuthentication authentication)
throws PowerAuthAuthenticationException
request - Create token request.authentication - PowerAuth API authentication object.PowerAuthAuthenticationException - In case authentication fails or request is invalid.@RequestMapping(value="remove",
method=POST)
public io.getlime.core.rest.model.base.response.ObjectResponse<io.getlime.security.powerauth.rest.api.model.response.v3.TokenRemoveResponse> removeToken(@RequestBody
io.getlime.core.rest.model.base.request.ObjectRequest<io.getlime.security.powerauth.rest.api.model.request.v3.TokenRemoveRequest> request,
PowerAuthApiAuthentication authentication)
throws PowerAuthAuthenticationException
request - Remove token request.authentication - PowerAuth API authentication object.PowerAuthAuthenticationException - In case authentication fails or request is invalid.Copyright © 2017–2019 Wultra s.r.o.. All rights reserved.