issrg.utils.handler
Class Interpreter

java.lang.Object
  extended by issrg.utils.handler.Interpreter

public class Interpreter
extends java.lang.Object

this class is used to interpret a ws-trust request.

Author:
ls97

Field Summary
static int INDETERMINATE
           
static int PULL
           
static int PULLPUSH
           
static int PUSH
           
 
Constructor Summary
Interpreter(org.w3c.dom.Node contextIn)
          Creates a new instance of Interpreter
 
Method Summary
 AttributeStatement[] getAttributeStatements(org.w3c.dom.Node assertion)
          this method returns a set of AttributeStatement objects by given a SAML assertion.
 java.lang.String getContextRef()
           
 int getModel()
           
protected  org.w3c.dom.Node getSamlAssertion()
           
 java.lang.String[] getSubAttrRefs(org.w3c.dom.Node assertion)
          this method returns a set of URLs from a element in the given SAML assertion.
 java.lang.String getSubjectDN(org.w3c.dom.Node assertion)
          return a valid subject DN; otherwise an empty string is returned
static boolean isTheSameDN(java.lang.String n1, java.lang.String n2)
          returns true if two DNs are identical.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUSH

public static int PUSH

PULL

public static int PULL

PULLPUSH

public static int PULLPUSH

INDETERMINATE

public static int INDETERMINATE
Constructor Detail

Interpreter

public Interpreter(org.w3c.dom.Node contextIn)
Creates a new instance of Interpreter

Method Detail

getModel

public int getModel()

getSamlAssertion

protected org.w3c.dom.Node getSamlAssertion()

getSubjectDN

public java.lang.String getSubjectDN(org.w3c.dom.Node assertion)
return a valid subject DN; otherwise an empty string is returned

Parameters:
assertion - is a SAML assertion

getContextRef

public java.lang.String getContextRef()

getAttributeStatements

public AttributeStatement[] getAttributeStatements(org.w3c.dom.Node assertion)
this method returns a set of AttributeStatement objects by given a SAML assertion.

Parameters:
assertion - is the SAML assertion

getSubAttrRefs

public java.lang.String[] getSubAttrRefs(org.w3c.dom.Node assertion)
this method returns a set of URLs from a element in the given SAML assertion.

Parameters:
assertion - is the SAML assertion

isTheSameDN

public static boolean isTheSameDN(java.lang.String n1,
                                  java.lang.String n2)
returns true if two DNs are identical. for example, cn=user,c=gb is identical to /c=gb/cn=user

Parameters:
n1, - the first string dn.
n2, - the second string dn.
Returns: