|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addClient(String appInstanceId, String password) Add client for oauth2 |
void |
addResources(Map resourceList) Add resource OAuth resource to database |
AccessToken |
applyAccessToken(String appInstanceId, String[] scopes) Apply an access token for application Instance id |
Scope |
checkSubScope(Scopes scopes, String resourceId) |
void |
deleteResources(List resourceIds) Delete resource OAuth resource |
AccessToken |
getAccessToken(String appInstanceId) get access token of a special appInstanceId |
int |
getAuthorizationCodeExpirePeriod() Get the authorization code expire period by seconds. |
String |
getMacAlgorithm() Get the MAC algorithm used to calculate the request MAC for access token. |
OAuthResource |
getOAuthFromRequest(String requestUrl, String method) |
Map |
getResourceList() List all the supported OAuth resource in OCSG. |
String |
getTokenType() Get The token type, only support 'mac' and 'bearer'. |
boolean |
isIssueRefreshToken() Whether generate refesh token when issing access token. |
boolean |
isSendAnonymousId() Get the flag about whether or not include AnonymousId in applyAccessToken response event. |
void |
removeClientAndToken(String appInstanceId) Remove client information and access token related with a appInstanceId |
void |
start() Start OAuth management, register OAuth MBeans. |
void |
stop() Stop OAuth management, unregister OAuth MBeans. |
Method Detail |
public void addClient(String appInstanceId, String password) throws ManagementException
password
-appInstanceId
-ManagementException
public void addResources(Map resourceList) throws ManagementException
resourceList
-ManagementException
public AccessToken applyAccessToken(String appInstanceId, String[] scopes) throws StorageException
appInstanceId
-scopes
-StorageException
public Scope checkSubScope(Scopes scopes, String resourceId)
public void deleteResources(List resourceIds) throws ManagementException
resourceIds
-ManagementException
public AccessToken getAccessToken(String appInstanceId) throws StorageException
appInstanceId
-StorageException
public int getAuthorizationCodeExpirePeriod()
public String getMacAlgorithm()
public OAuthResource getOAuthFromRequest(String requestUrl, String method)
public Map getResourceList()
public String getTokenType()
public boolean isIssueRefreshToken()
public boolean isSendAnonymousId()
public void removeClientAndToken(String appInstanceId) throws StorageException, ManagementException
appInstanceId
-StorageException
ManagementException
public void start()
public void stop()
|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |