Examples of RelyingPartyException


Examples of org.wso2.carbon.identity.relyingparty.RelyingPartyException

  private static boolean isInKeyStore(X509Certificate signedCert, KeyStore keyStore)
      throws Exception {

    if (signedCert == null || keyStore == null) {
      throw new RelyingPartyException("invalidInputParams");
    }

    // validity period
    signedCert.checkValidity();

    try {
      if (keyStore.getCertificateAlias(signedCert) != null) {
        return true;
      } else {
        return false;
      }
    } catch (KeyStoreException e) {
      log.error("The keystore has not been initialized", e);
      throw new RelyingPartyException("errorLoadingTrustedKeystore", e);
    }
  }
View Full Code Here

Examples of org.wso2.carbon.identity.relyingparty.RelyingPartyException

                validated = false;
            } else {
                validated = true;
            }
        } catch (Exception e) {
            throw new RelyingPartyException("errorValidatingIssuerPolicy", e);
        }

        return validated;
    }
View Full Code Here

Examples of org.wso2.carbon.identity.relyingparty.RelyingPartyException

        // Get the RelyingParty Service to update security policy with keystore information
        service = config.getService(RP_SERVICE_NAME);
        if (service == null) {
            String msg = RP_SERVICE_NAME + " is not available in the Configuration Context";
            log.error(msg);
            throw new RelyingPartyException(msg);
        }

        // Create a Rampart Config with default crypto information
        Policy rampartConfig = IdentityBaseUtil.getDefaultRampartConfig();
        // Add the RampartConfig to service policy
View Full Code Here

Examples of org.wso2.carbon.identity.relyingparty.RelyingPartyException

                validated = false;
            } else {
                validated = true;
            }
        } catch (Exception e) {
            throw new RelyingPartyException("errorValidatingIssuerPolicy", e);
        }

        return validated;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.