Search in sources :

Example 1 with GetPaginatedKeystoreInfoResponse

use of org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfoResponse in project carbon-identity-framework by wso2.

the class KeyStoreAdminClient method getPaginatedKeystoreInfo.

public PaginatedKeyStoreData getPaginatedKeystoreInfo(String keyStoreName, int pageNumber) throws java.lang.Exception {
    try {
        GetPaginatedKeystoreInfo request = new GetPaginatedKeystoreInfo();
        request.setKeyStoreName(keyStoreName);
        request.setPageNumber(pageNumber);
        GetPaginatedKeystoreInfoResponse response = stub.getPaginatedKeystoreInfo(request);
        return response.get_return();
    } catch (java.lang.Exception e) {
        log.error("Error in getting paginated keystore info.", e);
        throw e;
    }
}
Also used : GetPaginatedKeystoreInfoResponse(org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfoResponse) GetPaginatedKeystoreInfo(org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfo)

Example 2 with GetPaginatedKeystoreInfoResponse

use of org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfoResponse in project product-is by wso2.

the class KeyStoreAdminClient method getPaginatedKeystoreInfo.

public PaginatedKeyStoreData getPaginatedKeystoreInfo(String keyStoreName, int pageNumber) throws Exception {
    try {
        GetPaginatedKeystoreInfo request = new GetPaginatedKeystoreInfo();
        request.setKeyStoreName(keyStoreName);
        request.setPageNumber(pageNumber);
        GetPaginatedKeystoreInfoResponse response = stub.getPaginatedKeystoreInfo(request);
        return response.get_return();
    } catch (Exception e) {
        log.error("Error in getting paginated keystore info.", e);
        throw new Exception("Error in getting paginated keystore info.");
    }
}
Also used : GetPaginatedKeystoreInfoResponse(org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfoResponse) GetPaginatedKeystoreInfo(org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfo) RemoteException(java.rmi.RemoteException)

Aggregations

GetPaginatedKeystoreInfo (org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfo)2 GetPaginatedKeystoreInfoResponse (org.wso2.carbon.security.mgt.stub.keystore.GetPaginatedKeystoreInfoResponse)2 RemoteException (java.rmi.RemoteException)1