Class TokenService
- java.lang.Object
-
- io.getlime.security.powerauth.rest.api.spring.service.v3.TokenService
-
@Service("tokenServiceV3") public class TokenService extends java.lang.ObjectService implementing token functionality.PowerAuth protocol versions:
- 3.0
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
-
Constructor Summary
Constructors Constructor Description TokenService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponsecreateToken(io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication)Create token.io.getlime.security.powerauth.rest.api.model.response.v3.TokenRemoveResponseremoveToken(io.getlime.security.powerauth.rest.api.model.request.v3.TokenRemoveRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication)Remove token.voidsetPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
-
-
-
Method Detail
-
setPowerAuthClient
@Autowired public void setPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
-
createToken
public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse createToken(io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationExceptionCreate token.- Parameters:
request- ECIES encrypted create token request.authentication- PowerAuth API authentication object.- Returns:
- ECIES encrypted create token response.
- Throws:
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException- In case token could not be created.
-
removeToken
public io.getlime.security.powerauth.rest.api.model.response.v3.TokenRemoveResponse removeToken(io.getlime.security.powerauth.rest.api.model.request.v3.TokenRemoveRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationExceptionRemove token.- Parameters:
request- Remove token request.authentication- PowerAuth API authentication object.- Returns:
- Remove token response.
- Throws:
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException- In case authentication fails.
-
-