コード例 #1
0
  private static AppServerSingleSignOn prepareSSOConfigs() {
    AppServerSingleSignOn ssoConfiguration = new AppServerSingleSignOn();

    ssoConfiguration.setIdpURL(Constants.IDP_URL);
    ssoConfiguration.setIdpEntityId(Constants.IDP_ENTITY_ID);
    ssoConfiguration.setIdpCertificateAlias(Constants.IDP_CERT_ALIAS);

    return ssoConfiguration;
  }
コード例 #2
0
 private static boolean compareSSOConfigurations(
     AppServerSingleSignOn actual, AppServerSingleSignOn expected) {
   if ((actual != null) && (expected != null)) {
     boolean idpURL = actual.getIdpURL().trim().equals(expected.getIdpURL());
     boolean idpEntityID = actual.getIdpEntityId().trim().equals(expected.getIdpEntityId());
     boolean idpCertAlias =
         actual.getIdpCertificateAlias().trim().equals(expected.getIdpCertificateAlias());
     boolean properties = compareSSOProperties(actual.getProperties(), expected.getProperties());
     return (idpURL && idpEntityID && idpCertAlias && properties);
   } else {
     return (actual == null) && (expected == null);
   }
 }