コード例 #1
0
ファイル: QueryClient.java プロジェクト: aldaris/opensso
  /**
   * Returns true if the assertion is to be signed. The PEP Standard metdata configuration is
   * retreived to get the value of the attribute WantAssertionsSigned.
   *
   * @param realm the entity's realm.
   * @param pepEntityID entity identifier of the PEP.
   * @return true if the value of the attribute is true.
   * @exception <code>SAML2MetaException</code> if there is an error retreiving the configuration.
   */
  private static boolean wantAssertionSigned(String realm, String pepEntityID)
      throws SAML2MetaException {
    XACMLAuthzDecisionQueryDescriptorElement pepDescriptor =
        saml2MetaManager.getPolicyEnforcementPointDescriptor(realm, pepEntityID);

    return pepDescriptor.isWantAssertionsSigned();
  }