com.descope.sdk.mgmt.AccessKeyService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java library used to integrate with Descope.
The newest version!
package com.descope.sdk.mgmt;
import com.descope.exception.DescopeException;
import com.descope.model.auth.AssociatedTenant;
import com.descope.model.mgmt.AccessKeyResponse;
import com.descope.model.mgmt.AccessKeyResponseList;
import java.util.List;
import java.util.Map;
public interface AccessKeyService {
AccessKeyResponse create(String name, int expireTime, List roleNames, List keyTenants)
throws DescopeException;
AccessKeyResponse create(String name, int expireTime, List roleNames, List keyTenants,
Map customClaims) throws DescopeException;
AccessKeyResponse create(String name, int expireTime, List roleNames, List keyTenants,
String userId) throws DescopeException;
AccessKeyResponse create(String name, int expireTime, List roleNames, List keyTenants,
String userId, Map customClaims) throws DescopeException;
AccessKeyResponse load(String id) throws DescopeException;
AccessKeyResponseList searchAll(List tenantIDs) throws DescopeException;
AccessKeyResponse update(String id, String name) throws DescopeException;
AccessKeyResponse deactivate(String id) throws DescopeException;
AccessKeyResponse activate(String id) throws DescopeException;
void delete(String id) throws DescopeException;
}