xsul.secconv
Class SCUtil

java.lang.Object
  extended byxsul.secconv.SCUtil

public class SCUtil
extends java.lang.Object


Constructor Summary
SCUtil()
           
 
Method Summary
static java.lang.String createContextId(int hashcode)
           
static RequestedSecurityTokenType createNewContextResource(java.lang.String contextId)
           
static org.w3c.dom.Node getDirectChild(org.w3c.dom.Node fNode, java.lang.String localName, java.lang.String namespace)
           
static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element element)
           
static char[] getPassword()
          Temp method for gettig password from a local file
static java.security.Key getSessionKey(java.lang.String contextId)
           
static void pathValidation(java.security.cert.X509Certificate cert, TrustedCertificates trustedCerts)
           
static void saveSessionKey(java.lang.String contextId, java.security.Key key, boolean b)
           
static org.w3c.dom.Element toElement(org.w3c.dom.Document doc, java.lang.Object obj, QName qname)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCUtil

public SCUtil()
Method Detail

createContextId

public static java.lang.String createContextId(int hashcode)

toElement

public static org.w3c.dom.Element toElement(org.w3c.dom.Document doc,
                                            java.lang.Object obj,
                                            QName qname)

getFirstElement

public static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element element)

getDirectChild

public static org.w3c.dom.Node getDirectChild(org.w3c.dom.Node fNode,
                                              java.lang.String localName,
                                              java.lang.String namespace)

getPassword

public static char[] getPassword()
                          throws java.lang.Exception
Temp method for gettig password from a local file

Returns:
a password char[]
Throws:
java.lang.Exception

getSessionKey

public static java.security.Key getSessionKey(java.lang.String contextId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

saveSessionKey

public static void saveSessionKey(java.lang.String contextId,
                                  java.security.Key key,
                                  boolean b)
                           throws java.lang.Exception
Throws:
java.lang.Exception

createNewContextResource

public static RequestedSecurityTokenType createNewContextResource(java.lang.String contextId)
                                                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

pathValidation

public static void pathValidation(java.security.cert.X509Certificate cert,
                                  TrustedCertificates trustedCerts)
                           throws java.lang.Exception
Throws:
java.lang.Exception


IU Extreme! Lab (http://www.extreme.indiana.edu)