Class PingFederatKeyManagerClient

java.lang.Object
org.wso2.carbon.apimgt.impl.AbstractKeyManager
org.wso2.pingfederate.client.PingFederatKeyManagerClient
All Implemented Interfaces:
org.wso2.carbon.apimgt.api.model.KeyManager

public class PingFederatKeyManagerClient extends org.wso2.carbon.apimgt.impl.AbstractKeyManager
This class provides the implementation to use "pingFederate" for managing OAuth clients and Tokens needed by WSO2 API Manager.
  • Constructor Details

    • PingFederatKeyManagerClient

      public PingFederatKeyManagerClient()
  • Method Details

    • createApplication

      public org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo createApplication(org.wso2.carbon.apimgt.api.model.OAuthAppRequest oAuthAppRequest) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • updateApplication

      public org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo updateApplication(org.wso2.carbon.apimgt.api.model.OAuthAppRequest oAuthAppRequest) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • deleteApplication

      public void deleteApplication(String clientId) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • retrieveApplication

      public org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo retrieveApplication(String clientId) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getNewApplicationAccessToken

      public org.wso2.carbon.apimgt.api.model.AccessTokenInfo getNewApplicationAccessToken(org.wso2.carbon.apimgt.api.model.AccessTokenRequest accessTokenRequest) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getNewApplicationConsumerSecret

      public String getNewApplicationConsumerSecret(org.wso2.carbon.apimgt.api.model.AccessTokenRequest accessTokenRequest) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getTokenMetaData

      public org.wso2.carbon.apimgt.api.model.AccessTokenInfo getTokenMetaData(String accessToken) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getKeyManagerConfiguration

      public org.wso2.carbon.apimgt.api.model.KeyManagerConfiguration getKeyManagerConfiguration() throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • mapOAuthApplication

      public org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo mapOAuthApplication(org.wso2.carbon.apimgt.api.model.OAuthAppRequest oAuthAppRequest) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • loadConfiguration

      public void loadConfiguration(org.wso2.carbon.apimgt.api.model.KeyManagerConfiguration keyManagerConfiguration) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • registerNewResource

      public boolean registerNewResource(org.wso2.carbon.apimgt.api.model.API api, Map map) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getResourceByApiId

      public Map getResourceByApiId(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • updateRegisteredResource

      public boolean updateRegisteredResource(org.wso2.carbon.apimgt.api.model.API api, Map map) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • deleteRegisteredResourceByAPIId

      public void deleteRegisteredResourceByAPIId(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • deleteMappedApplication

      public void deleteMappedApplication(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getActiveTokensByConsumerKey

      public Set<String> getActiveTokensByConsumerKey(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getAccessTokenByConsumerKey

      public org.wso2.carbon.apimgt.api.model.AccessTokenInfo getAccessTokenByConsumerKey(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getScopesForAPIS

      public Map<String,Set<org.wso2.carbon.apimgt.api.model.Scope>> getScopesForAPIS(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • registerScope

      public void registerScope(org.wso2.carbon.apimgt.api.model.Scope scope) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getScopeByName

      public org.wso2.carbon.apimgt.api.model.Scope getScopeByName(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getAllScopes

      public Map<String,org.wso2.carbon.apimgt.api.model.Scope> getAllScopes() throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • deleteScope

      public void deleteScope(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • updateScope

      public void updateScope(org.wso2.carbon.apimgt.api.model.Scope scope) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • isScopeExists

      public boolean isScopeExists(String s) throws org.wso2.carbon.apimgt.api.APIManagementException
      Throws:
      org.wso2.carbon.apimgt.api.APIManagementException
    • getType

      public String getType()