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

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

PowerAuth protocol versions:

  • 2.0
  • 2.1
Author:
Roman Strobl, roman.strobl@wultra.com
  • 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.v2.TokenCreateResponse createToken​(io.getlime.security.powerauth.rest.api.model.request.v2.TokenCreateRequest request, PowerAuthApiAuthentication authentication) throws PowerAuthAuthenticationException
      Create token.
      Parameters:
      request - Create token request.
      authentication - PowerAuth API authentication.
      Returns:
      Create token response.
      Throws:
      PowerAuthAuthenticationException - In case token could not be created.