AssertionIDRequestUtil.java revision ccf9d4a5c6453fa9f8b839baeee25147865fbb7d
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The contents of this file are subject to the terms
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * of the Common Development and Distribution License
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * (the License). You may not use this file except in
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * compliance with the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * You can obtain a copy of the License at
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * https://opensso.dev.java.net/public/CDDLv1.0.html or
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * See the License for the specific language governing
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * permission and limitations under the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * When distributing Covered Code, include this CDDL
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Header Notice in each file and include the License file
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * If applicable, add the following below the CDDL Header,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * with the fields enclosed by brackets [] replaced by
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * your own identifying information:
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * "Portions Copyrighted [year] [name of copyright owner]"
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * $Id: AssertionIDRequestUtil.java,v 1.8 2009/06/12 22:21:40 mallas Exp $
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Portions Copyrighted 2013-2016 ForgeRock AS.
public class AssertionIDRequestUtil {
private AssertionIDRequestUtil() {
throw new SAML2Exception(
return null;
return null;
int left;
int numbytes;
return samlResp;
throw new SAML2Exception(
throw new SAML2Exception(
throw new SAML2Exception(
return roled;
private static void signAssertionIDRequest(
if (includeCert) {
private static void verifyAssertionIDRequest(
if (!valid) {
throw new SAML2Exception(
String encryptedKeyPass = SAML2Utils.getSigningCertEncryptedKeyPass(realm, samlAuthorityEntityID, role);
if (includeCert) {
throws SAML2Exception {
role);
throw new SAML2Exception(
return response;
Set<X509Certificate> signingCerts = KeyUtil.getVerificationCerts(roled, samlAuthorityEntityID, role);
if (!valid) {
throws SAML2Exception {
return aidReqMapper;