git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@386
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
- if (!(arpComponent instanceof String) && !(requestComponent instanceof String)) {
+ if (!(arpComponent instanceof String) || !(requestComponent instanceof String)) {
log.error("Invalid use of ARP matching function (ExacthSharMatchFunction).");
throw new MatchingException("Invalid use of ARP matching function (ExacthSharMatchFunction).");
}
log.error("Invalid use of ARP matching function (ExacthSharMatchFunction).");
throw new MatchingException("Invalid use of ARP matching function (ExacthSharMatchFunction).");
}
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
- if (!(arpComponent instanceof String) && !(requestComponent instanceof String || requestComponent instanceof URL)) {
+ if (!(arpComponent instanceof String) || !(requestComponent instanceof String || requestComponent instanceof URL)) {
log.error("Invalid use of ARP matching function (RegexMatchFunction).");
throw new MatchingException(
"Invalid use of ARP matching function (RegexMatchFunction).");
log.error("Invalid use of ARP matching function (RegexMatchFunction).");
throw new MatchingException(
"Invalid use of ARP matching function (RegexMatchFunction).");
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
public boolean match(Object arpComponent, Object requestComponent)
throws MatchingException
{
- if (!(arpComponent instanceof String) && !(requestComponent instanceof URL)) {
+ if (!(arpComponent instanceof String) || !(requestComponent instanceof URL)) {
log.error("Invalid use of ARP matching function (ResourceTreeMatchFunction).");
throw new MatchingException(
"Invalid use of ARP matching function (ResourceTreeMatchFunction).");
log.error("Invalid use of ARP matching function (ResourceTreeMatchFunction).");
throw new MatchingException(
"Invalid use of ARP matching function (ResourceTreeMatchFunction).");