java.lang.Object
io.getlime.security.powerauth.rest.api.spring.service.v2.TokenService

@Service("tokenServiceV2")
public class TokenService
extends java.lang.Object
Service implementing token functionality.

PowerAuth protocol versions:

  • 2.0
  • 2.1
Author:
Roman Strobl, roman.strobl@wultra.com
  • Constructor Summary

    Constructors
    Constructor Description
    TokenService()  
  • Method Summary

    Modifier and Type Method Description
    io.getlime.security.powerauth.rest.api.model.response.v2.TokenCreateResponse createToken​(io.getlime.security.powerauth.rest.api.model.request.v2.TokenCreateRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication)
    Create token.
    void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TokenService

      public TokenService()
  • Method Details

    • setPowerAuthClient

      @Autowired public void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
    • createToken

      public io.getlime.security.powerauth.rest.api.model.response.v2.TokenCreateResponse createToken​(io.getlime.security.powerauth.rest.api.model.request.v2.TokenCreateRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException
      Create token.
      Parameters:
      request - Create token request.
      authentication - PowerAuth API authentication.
      Returns:
      Create token response.
      Throws:
      io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException - In case token could not be created.