Class CreateRefreshToken
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.oauth.command.handler.CreateRefreshToken
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class CreateRefreshToken
extends net.lightapi.portal.command.AbstractCommandHandler
Create a refresh token from the light-oauth2 token service. The refresh token will be used for user
based grant flow, and it must be associated with a token that has a uid. Use that token to create
refresh token or delete refresh token. For service to service invocation, a client credentials token
will be created and cached for each request and there is no refresh token involves.
- Author:
- Steve Hu
-
Field Summary
Fields inherited from class net.lightapi.portal.command.AbstractCommandHandler
config, dbProvider, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_IDFields inherited from interface com.networknt.rpc.HybridHandler
ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.lightapi.portal.command.AbstractCommandHandler
additionalAction, buildCloudEvent, customizeOutput, enrichInput, handle, validateInput, validateTokenTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.rpc.HybridHandler
getStatus, getStatus, validate
-
Constructor Details
-
CreateRefreshToken
public CreateRefreshToken()
-
-
Method Details
-
getCloudEventType
- Specified by:
getCloudEventTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getCloudEventAggregateType
- Specified by:
getCloudEventAggregateTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getCloudEventAggregateId
- Specified by:
getCloudEventAggregateIdin classnet.lightapi.portal.command.AbstractCommandHandler
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classnet.lightapi.portal.command.AbstractCommandHandler
-