org.opensciencegrid.authz.saml
Class SAMLUtil

java.lang.Object
  extended byorg.opensciencegrid.authz.saml.SAMLUtil

public class SAMLUtil
extends java.lang.Object

Utility functions to simplify consistent processing of SAML objects Project: Privilege Project / OpenScienceGrid

Author:
Markus Lorch

Constructor Summary
SAMLUtil()
           
 
Method Summary
static boolean samlActionMatch(org.opensaml.SAMLAction s1, org.opensaml.SAMLAction s2)
          Method to compare two SAMLAction objects, returns true if equal.
static boolean samlSubjectMatch(org.opensaml.SAMLSubject s1, org.opensaml.SAMLSubject s2)
          Method to compare two SAMLSubjects based on the contents of their SAMLNameIdentifier objects alone (Name, NameQualifier, NameFormat) returns true if equal, false if the SAMLSubjects differ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLUtil

public SAMLUtil()
Method Detail

samlSubjectMatch

public static boolean samlSubjectMatch(org.opensaml.SAMLSubject s1,
                                       org.opensaml.SAMLSubject s2)
Method to compare two SAMLSubjects based on the contents of their SAMLNameIdentifier objects alone (Name, NameQualifier, NameFormat) returns true if equal, false if the SAMLSubjects differ


samlActionMatch

public static boolean samlActionMatch(org.opensaml.SAMLAction s1,
                                      org.opensaml.SAMLAction s2)
Method to compare two SAMLAction objects, returns true if equal.
actions are considered equal if they have matching namespaces and matching data fields (string.equals)



Copyright © 2004-2005 BNL siteAAA. All Rights Reserved.