public class OAuthApprovalController extends StandardModelController<OAuthApproval>
Constructor and Description |
---|
OAuthApprovalController() |
all, countForKey, detach, filter, filter, filterBy, filterByKey, filterChain, forId, forIdWithDeleted, forUniqueKey, getBucket, getKeyFields, getModelClass, getPersister, getReadonlyWrapper, getStash, getUniqueFields, hardDelete, init, isWritable, listForKey, newModel, newModel, newModel, onPostCreate, onPostLoadItem, onPostSave, onPreCreatePrepare, onPreCreateValidate, onPreRead, onPreSavePrepare, onPreSaveValidate, originalForId, originalForId, postInitialize, preInitialize, reset, save, setPersister, setWritable, softDelete
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anyOf, anyOf, find, forIdOrNotFound, forUniqueKeyOrNotFound, onPostSaveAuditTrailLog, search, update, updateValues
public OAuthApprovalController()
public static void register()
public static OAuthApprovalController instance()
public boolean checkHeaderAndAuthorizeUserForRequest(StRequest request)
public OAuthUserLogin tokenToUser(String accessToken)
public OAuthUserLogin tokenToUser(String accessToken, boolean ignoreExpires)
public OAuthApproval checkGrantApprovalForUser(GrantType grantType, IUser user, String fullClientId, Set<String> scopes, boolean isScoped, String redirectUri)
public OAuthApproval checkGrantApprovalForUser(GrantType grantType, IUser user, String fullClientId, Set<String> scopes, boolean isScoped, String redirectUri, String providedCode)
public OAuthApproval generateNewApprovalForUser(IUser user, OAuthClient client, Set<String> scopes, boolean isScoped)
public OAuthApproval generateNewApprovalForUser(IUser user, OAuthClient client, Set<String> scopes, boolean isScoped, String providedCode)
protected OAuthApproval createOrUpdateApproval(OAuthApproval approval, IUser user, OAuthClient client)
public OAuthApproval newAccessTokenForRefreshToken(String refreshToken, String accessToken, String fullClientId, String fullClientSecret)
Copyright © 2016. All rights reserved.