/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
* *
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: XACMLRequestProcessorTest.java,v 1.4 2008/06/25 05:50:18 qcheng Exp $
*
*/
public XACMLRequestProcessorTest() {
super("OpenFed-xacml-XACMLRequestProcessorTest");
}
//@Test(groups={"xacml"}, expectedExceptions={XACMLException.class})
//@Test(groups={"xacml"})
exiting("testGetInstance()");
}
"login.id", "login.password",
"subject.id", "subject.id.datatype",
"subject.category",
"resource.id", "resource.id.datatype",
"resource.servicename", "resource.servicename.datatype",
"action.id", "action.id.datatype"})
public void testProcessRequest(
throws XACMLException, SAML2Exception,
}
xacmlRequest.toXMLString(true, true));
xacmlResponse.toXMLString(true, true));
}
throws XACMLException, URISyntaxException {
//Subject1, access-subject
//supported category for id
//urn:oasis:names:tc:xacml:1.0:subject-category:access-subject
//key attribute id
//urn:oasis:names:tc:xacml:1.0:subject:subject-id
//supported data type for id
//urn:oasis:names:tc:xacml:1.0:data-type:x500Name
//urn:sun:names:xacml:2.0:data-type:opensso-session-id
//urn:sun:names:xacml:2.0:data-type:openfm-sp-nameid
//set values
//Subject2, intermediary-subject
//supported data type for id
//urn:oasis:names:tc:xacml:1.0:data-type:x500Name
//urn:sun:names:xacml:2.0:data-type:opensso-session-id
//urn:sun:names:xacml:2.0:data-type:openfm-sp-nameid
//set values
//set subjects in request
//Resource
//resoruce-id attribute
//key attribute id
//urn:oasis:names:tc:xacml:1.0:resource:resource-id
//supported data type
//http://www.w3.org/2001/XMLSchema#string
new URI(resourceIdType));
//set values
//serviceName attribute
//additional attribute id
//urn:sun:names:xacml:2.0:resource:target-service
//supported data type
//http://www.w3.org/2001/XMLSchema#string
new URI(serviceNameType));
//set values
//Action
//key attribute id
//urn:oasis:names:tc:xacml:1.0:action:action-id
//supported data type
//http://www.w3.org/2001/XMLSchema#string
new URI(actionIdType));
//Enviornment
return request;
}
}