public interface TagManager
| Modifier and Type | Method and Description |
|---|---|
String |
createTag(String userId,
String appTagType,
long duration,
TimeUnit durationTimeUnit,
String nonce)
Create a tag for a given user id with a particular type and duration.
|
String |
getUserIdForTag(String tag)
Retrieves the userId associated with a tag.
|
void |
removeMatchingTag(String userId,
String appTagType)
Remove any matching tag for the given user and type.
|
void |
sweepExpiredTags()
Sweep any expired tags.
|
String createTag(String userId, String appTagType, long duration, TimeUnit durationTimeUnit, String nonce) throws IamSvcException
userId - a user IDappTagType - a tag typeduration - the length of time the tag should existdurationTimeUnit - the time unit for the durationnonce - used to seed random number generatorIamSvcException - if there's a problem in the IAM serviceString getUserIdForTag(String tag) throws IamSvcException
tag - a tag generated by createTagIamSvcException - if there's a problem in the IAM servicevoid removeMatchingTag(String userId, String appTagType) throws IamSvcException
userId - a user IDappTagType - a tag typeIamSvcException - if there's a problem in the IAM servicevoid sweepExpiredTags()
throws IamSvcException
IamSvcException - if there's a problem in the IAM serviceCopyright © 2021 continual.io. All rights reserved.