Class TokenService
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.service.TokenService
Service implementing token functionality.
PowerAuth protocol versions:
- 3.0
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
ConstructorsConstructorDescriptionTokenService(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, HttpCustomizationService httpCustomizationService) Service constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponsecreateToken(io.getlime.security.powerauth.rest.api.model.request.EciesEncryptedRequest request, PowerAuthApiAuthentication authentication) Create token.io.getlime.security.powerauth.rest.api.model.response.TokenRemoveResponseremoveToken(io.getlime.security.powerauth.rest.api.model.request.TokenRemoveRequest request, PowerAuthApiAuthentication authentication) Remove token.
-
Constructor Details
-
TokenService
@Autowired public TokenService(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, HttpCustomizationService httpCustomizationService) Service constructor.- Parameters:
powerAuthClient- PowerAuth client.httpCustomizationService- HTTP customization service.
-
-
Method Details
-
createToken
public io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse createToken(io.getlime.security.powerauth.rest.api.model.request.EciesEncryptedRequest request, PowerAuthApiAuthentication authentication) throws PowerAuthAuthenticationException Create token.- Parameters:
request- ECIES encrypted create token request.authentication- PowerAuth API authentication object.- Returns:
- ECIES encrypted create token response.
- Throws:
PowerAuthAuthenticationException- In case token could not be created.
-
removeToken
public io.getlime.security.powerauth.rest.api.model.response.TokenRemoveResponse removeToken(io.getlime.security.powerauth.rest.api.model.request.TokenRemoveRequest request, PowerAuthApiAuthentication authentication) throws PowerAuthAuthenticationException Remove token.- Parameters:
request- Remove token request.authentication- PowerAuth API authentication object.- Returns:
- Remove token response.
- Throws:
PowerAuthAuthenticationException- In case authentication fails.
-