All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.descope.sdk.mgmt.AccessKeyService Maven / Gradle / Ivy

There is a newer version: 1.0.30
Show 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy