public interface OAuth2Client extends CentraSiteRegistryObject
Modifier and Type | Method and Description |
---|---|
boolean |
canBeRevokedAsProvider(User user)
Checks if this OAuth2Client can be revoked as a Provider for the given
User . |
java.lang.String |
getConsumer()
Get the Consumer Id for this OAuth Token.
|
java.lang.String |
getTokenRefreshInterval()
Returns Refresh Interval for OAuth2 Client Object in seconds.
|
Service |
getVirtualService()
Returns the virtual service for which this OAuth2 Client was generated
|
void |
revokeAsConsumer()
Revoke this OAuth2Client as a Consumer.
|
void |
revokeAsProvider()
Revoke this OAuth2Client as a Provider.
|
getConsumedAssets, getConsumers, getDescription, getDescription, getDisplayVersion, getInitialVirtualAssetName, getLastModifiedTimeStamp, getLCMAssignment, getLocalName, getMandatoryAttributeProfiles, getName, getName, getNameSpace, getNextVersion, getNextVersions, getOrganization, getOwner, getPendingApprovals, getPreviousVersion, getPreviousVersions, getRegistryObject, getRelationShipValueMap, getRequestedUser, getSubscribers, getSystemVersion, getTitle, getType, getUserVersion, getVisiblePrimaryProfiles, getVisibleProfile, isDeployedOn, isLatestVersionObject, isPropagatePermissions, isPropagateProfilePermissions, removeConsumedAssets, removeConsumers, setDescription, setDescription, setDisplayVersion, setLCMState, setLocalName, setName, setName, setNameSpace, setOrganization, setOwner, setPropagatePermissions, setPropagateProfilePermissions, setRelationShipValueMap, setUserVersion
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, isModified, isPredefined, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
void revokeAsConsumer() throws CLLException
CLLException
- If the user access is unauthorized or forbidden or if the required
policy for key renew/revoke could not be found or due to an internal errorvoid revokeAsProvider() throws CLLException
CLLException
- If the user access is unauthorized or forbidden or if the required
policy for key renew/revoke could not be found or due to an internal errorboolean canBeRevokedAsProvider(User user)
User
.user
- The User
who should have the required role to revoke this OAuth2Client as a providerjava.lang.String getConsumer()
String
.java.lang.String getTokenRefreshInterval() throws CLLException
CLLException
Service getVirtualService() throws CLLException
CLLException