+++ /dev/null
-/*
- * The Shibboleth License, Version 1.
- * Copyright (c) 2002
- * University Corporation for Advanced Internet Development, Inc.
- * All rights reserved
- *
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution, if any, must include
- * the following acknowledgment: "This product includes software developed by
- * the University Corporation for Advanced Internet Development
- * <http://www.ucaid.edu>Internet2 Project. Alternately, this acknowledegement
- * may appear in the software itself, if and wherever such third-party
- * acknowledgments normally appear.
- *
- * Neither the name of Shibboleth nor the names of its contributors, nor
- * Internet2, nor the University Corporation for Advanced Internet Development,
- * Inc., nor UCAID may be used to endorse or promote products derived from this
- * software without specific prior written permission. For written permission,
- * please contact shibboleth@shibboleth.org
- *
- * Products derived from this software may not be called Shibboleth, Internet2,
- * UCAID, or the University Corporation for Advanced Internet Development, nor
- * may Shibboleth appear in their name, without prior written permission of the
- * University Corporation for Advanced Internet Development.
- *
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND WITH ALL FAULTS. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- * PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE DISCLAIMED AND THE ENTIRE RISK
- * OF SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH LICENSEE.
- * IN NO EVENT SHALL THE COPYRIGHT OWNER, CONTRIBUTORS OR THE UNIVERSITY
- * CORPORATION FOR ADVANCED INTERNET DEVELOPMENT, INC. BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package edu.internet2.middleware.shibboleth.common;
-
-import java.io.Serializable;
-import java.security.Principal;
-
-/**
- * Shibboleth <code>Principal</code> that represents an Authenticated individual.
- *
- * @author Walter Hoehn (wassa@columbia.edu)
- */
-//TODO this name probably becomes less intuitive as name identifiers
-// don't necessarily come from the HS, change it
-public class AuthNPrincipal implements Principal, Serializable {
-
- static final long serialVersionUID = 1L;
- private String principalName;
-
- /**
- * Constructor for AuthNPrincipal.
- */
-
- public AuthNPrincipal(String principalName) {
- this.principalName = principalName;
- }
-
- /**
- * @see java.security.Principal#getName()
- */
-
- public String getName() {
- return principalName;
- }
-
- /**
- * @see java.lang.Object#equals(Object)
- */
- public boolean equals(Object obj) {
- if (!(obj instanceof AuthNPrincipal)) {
- return false;
- }
- return ((AuthNPrincipal) obj).getName().equals(getName());
- }
-
- /**
- * @see java.lang.Object#hashCode()
- */
- public int hashCode() {
- return "AuthNPrincipal".hashCode() + principalName.hashCode();
- }
-
-}
--- /dev/null
+/*
+ * The Shibboleth License, Version 1. Copyright (c) 2002 University Corporation for Advanced Internet Development, Inc.
+ * All rights reserved Redistribution and use in source and binary forms, with or without modification, are permitted
+ * provided that the following conditions are met: Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution, if any, must include the following acknowledgment: "This product includes software
+ * developed by the University Corporation for Advanced Internet Development <http://www.ucaid.edu>Internet2 Project.
+ * Alternately, this acknowledegement may appear in the software itself, if and wherever such third-party
+ * acknowledgments normally appear. Neither the name of Shibboleth nor the names of its contributors, nor Internet2, nor
+ * the University Corporation for Advanced Internet Development, Inc., nor UCAID may be used to endorse or promote
+ * products derived from this software without specific prior written permission. For written permission, please contact
+ * shibboleth@shibboleth.org Products derived from this software may not be called Shibboleth, Internet2, UCAID, or the
+ * University Corporation for Advanced Internet Development, nor may Shibboleth appear in their name, without prior
+ * written permission of the University Corporation for Advanced Internet Development. THIS SOFTWARE IS PROVIDED BY THE
+ * COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND WITH ALL FAULTS. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE
+ * DISCLAIMED AND THE ENTIRE RISK OF SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH LICENSEE. IN NO
+ * EVENT SHALL THE COPYRIGHT OWNER, CONTRIBUTORS OR THE UNIVERSITY CORPORATION FOR ADVANCED INTERNET DEVELOPMENT, INC.
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package edu.internet2.middleware.shibboleth.common;
+
+import java.io.Serializable;
+import java.security.Principal;
+
+/**
+ * Shibboleth basic <code>Principal</code> ipmlementation for internal use.
+ *
+ * @author Walter Hoehn (wassa@columbia.edu)
+ */
+
+public class LocalPrincipal implements Principal, Serializable {
+
+ static final long serialVersionUID = 1L;
+ private String principalName;
+
+ /**
+ * Constructor for LocalPrincipal.
+ */
+
+ public LocalPrincipal(String principalName) {
+
+ this.principalName = principalName;
+ }
+
+ /**
+ * @see java.security.Principal#getName()
+ */
+
+ public String getName() {
+
+ return principalName;
+ }
+
+ /**
+ * @see java.lang.Object#equals(Object)
+ */
+ public boolean equals(Object obj) {
+
+ if (!(obj instanceof LocalPrincipal)) { return false; }
+ return ((LocalPrincipal) obj).getName().equals(getName());
+ }
+
+ /**
+ * @see java.lang.Object#hashCode()
+ */
+ public int hashCode() {
+
+ return "LocalPrincipal".hashCode() + principalName.hashCode();
+ }
+
+}
import org.w3c.dom.Element;
import edu.internet2.middleware.shibboleth.aa.AAException;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
import edu.internet2.middleware.shibboleth.common.NameIdentifierMappingException;
import edu.internet2.middleware.shibboleth.common.RelyingParty;
import edu.internet2.middleware.shibboleth.common.ShibbolethConfigurationException;
log.error("Unable to authenticate remote user.");
throw new SAMLException(SAMLException.RESPONDER, "General error processing request.");
}
- AuthNPrincipal principal = new AuthNPrincipal(username);
+ LocalPrincipal principal = new LocalPrincipal(username);
// Select the appropriate Relying Party configuration for the request
String remoteProviderId = request.getParameter("aaid");
import org.w3c.dom.Element;
import edu.internet2.middleware.shibboleth.aa.AAException;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
import edu.internet2.middleware.shibboleth.common.NameIdentifierMappingException;
import edu.internet2.middleware.shibboleth.common.RelyingParty;
import edu.internet2.middleware.shibboleth.common.ShibbolethConfigurationException;
.getRemoteUser() : request.getHeader(support.getIdPConfig().getAuthHeaderName());
if ((username == null) || (username.equals(""))) { throw new InvalidClientDataException(
"Unable to authenticate remote user"); }
- AuthNPrincipal principal = new AuthNPrincipal(username);
+ LocalPrincipal principal = new LocalPrincipal(username);
// Select the appropriate Relying Party configuration for the request
RelyingParty relyingParty = null;
}
private void respondWithArtifact(HttpServletRequest request, HttpServletResponse response,
- IdPProtocolSupport support, AuthNPrincipal principal, RelyingParty relyingParty,
+ IdPProtocolSupport support, LocalPrincipal principal, RelyingParty relyingParty,
EntityDescriptor descriptor, String acceptanceURL, SAMLNameIdentifier nameId, String authenticationMethod,
SAMLSubject authNSubject, List assertions) throws SAMLException, IOException, UnsupportedEncodingException {
}
private void respondWithPOST(HttpServletRequest request, HttpServletResponse response, IdPProtocolSupport support,
- AuthNPrincipal principal, RelyingParty relyingParty, EntityDescriptor descriptor, String acceptanceURL,
+ LocalPrincipal principal, RelyingParty relyingParty, EntityDescriptor descriptor, String acceptanceURL,
SAMLNameIdentifier nameId, String authenticationMethod, SAMLSubject authNSubject, List assertions)
throws SAMLException, IOException, ServletException {
}
}
- private SAMLAssertion generateAttributeAssertion(IdPProtocolSupport support, AuthNPrincipal principal,
+ private SAMLAssertion generateAttributeAssertion(IdPProtocolSupport support, LocalPrincipal principal,
RelyingParty relyingParty, SAMLSubject authNSubject) throws SAMLException {
try {
import org.apache.log4j.Logger;
import org.apache.log4j.MDC;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
/**
* Simple Servlet Filter that populates the ServletRequest with data from a client certificate. Relies on external
return;
}
log.debug("Extracted principal name (" + principalName + ") from Subject.");
- chain.doFilter(new ClientCertTrustWrapper(httpRequest, new AuthNPrincipal(principalName)), response);
+ chain.doFilter(new ClientCertTrustWrapper(httpRequest, new LocalPrincipal(principalName)), response);
}
/**
import edu.internet2.middleware.shibboleth.aa.arp.ArpProcessingException;
import edu.internet2.middleware.shibboleth.aa.attrresolv.AttributeResolver;
import edu.internet2.middleware.shibboleth.aa.attrresolv.AttributeResolverException;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
import edu.internet2.middleware.shibboleth.common.OriginConfig;
import edu.internet2.middleware.shibboleth.common.ShibbolethConfigurationException;
import edu.internet2.middleware.shibboleth.idp.IdPConfig;
private static void resolveAttributes(AAAttributeSet attributeSet)
{
- Principal principal = new AuthNPrincipal(user);
+ Principal principal = new LocalPrincipal(user);
resolver.resolveAttributes(principal, requester, attributeSet);
import edu.internet2.middleware.shibboleth.aa.AAAttribute;
import edu.internet2.middleware.shibboleth.aa.AAAttributeSet;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
import edu.internet2.middleware.shibboleth.idp.IdPConfig;
import edu.internet2.middleware.shibboleth.xml.Parser;
fail("Error adding User ARP to Memory Repository.");
}
- Arp userArp2 = new Arp(new AuthNPrincipal("TestPrincipal"));
+ Arp userArp2 = new Arp(new LocalPrincipal("TestPrincipal"));
userArp2.setDescription("Test User Arp 2.");
try {
repository.update(userArp2);
directXML.toString().replaceAll(">[\t\r\n ]+<", "><").equals(
processedXML.toString().replaceAll(">[\t\r\n ]+<", "><")));
- Arp userArp = repository.getUserPolicy(new AuthNPrincipal("test"));
+ Arp userArp = repository.getUserPolicy(new LocalPrincipal("test"));
inStream = new FileInputStream("data/arp.user.test.xml");
parser.parse(new InputSource(inStream));
directXML.toString().replaceAll(">[\t\r\n ]+<", "><").equals(
processedXML.toString().replaceAll(">[\t\r\n ]+<", "><")));
- Arp[] allArps = repository.getAllPolicies(new AuthNPrincipal("test"));
+ Arp[] allArps = repository.getAllPolicies(new LocalPrincipal("test"));
assertTrue("File-based ARP Repository did not return the correct number of ARPs.", (allArps.length == 2));
}
try {
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
URI[] list1 = { new URI("urn:mace:dir:attribute-def:eduPersonAffiliation")};
URI[] list2 =
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("https://foo.com/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("https://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("https://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.example.edu/test/index.html");
AAAttributeSet inputSet =
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("TestPrincipal");
+ Principal principal1 = new LocalPrincipal("TestPrincipal");
URL url1 = new URL("http://www.external.com/");
AAAttributeSet inputSet =
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("Test2Principal");
+ Principal principal1 = new LocalPrincipal("Test2Principal");
URL url1 = new URL("http://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("Test2Principal");
+ Principal principal1 = new LocalPrincipal("Test2Principal");
URL url1 = new URL("http://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
+ " </Rule>"
+ " </AttributeReleasePolicy>";
- Principal principal1 = new AuthNPrincipal("Test2Principal");
+ Principal principal1 = new LocalPrincipal("Test2Principal");
URL url1 = new URL("http://www.example.edu/index.html");
AAAttributeSet inputSet =
new AAAttributeSet(
import edu.internet2.middleware.shibboleth.aa.AAAttribute;
import edu.internet2.middleware.shibboleth.aa.AAAttributeSet;
import edu.internet2.middleware.shibboleth.aa.attrresolv.provider.ScopedStringValueHandler;
-import edu.internet2.middleware.shibboleth.common.AuthNPrincipal;
+import edu.internet2.middleware.shibboleth.common.LocalPrincipal;
/**
* Validation suite for the <code>AttributeResolver</code>.
new Object[] { "urn:mace:example.edu:exampleEntitlement" })
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
new ScopedStringValueHandler("example.edu"))
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
} catch (AttributeResolverException e) {
new AAAttributeSet(new AAAttribute[] { new AAAttribute("myAffiliation", new Object[] { "member" })
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
} catch (AttributeResolverException e) {
new Object[] { "urn:mace:example.edu:exampleEntitlement" })
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
new ScopedStringValueHandler("example.edu"))
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
AAAttributeSet outputAttributes = new AAAttributeSet();
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
AAAttributeSet outputAttributes = new AAAttributeSet();
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);
} catch (ClassCastException e) {
new AAAttribute("urn:mace:shibboleth:test:eduPersonAffiliation", new Object[] { "member" })
});
- ar.resolveAttributes(new AuthNPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
+ ar.resolveAttributes(new LocalPrincipal("mytestuser"), "shar.example.edu", inputAttributes);
assertEquals("Attribute Resolver returned unexpected attribute set.", inputAttributes, outputAttributes);