org.kuali.student.security.util
Class SamlUtils

java.lang.Object
  extended by org.kuali.student.security.util.SamlUtils

public class SamlUtils
extends Object

This is a description of what this class does - Rich don't forget to fill this in.

Author:
Kuali Rice Team (kuali-rice@googlegroups.com)

Field Summary
private static String certificateAlias
           
private static String keystoreFile
           
private static String keystorePass
           
private static String keystoreType
           
private static String privateKeyAlias
           
private static String privateKeyPass
           
private static ThreadLocal<Map<String,String>> samlPropertiesHolder
           
 
Constructor Summary
SamlUtils()
           
 
Method Summary
static org.opensaml.SAMLAssertion createAssertion()
           
 String getCertificateAlias()
           
 String getKeystoreFile()
           
 String getKeystorePass()
           
 String getKeystoreType()
           
 String getPrivateKeyAlias()
           
 String getPrivateKeyPass()
           
static Map<String,String> getSamlProperties()
           
 void setCertificateAlias(String certificateAlias)
           
 void setKeystoreFile(String keystoreFile)
           
 void setKeystorePass(String keystorePass)
           
 void setKeystoreType(String keystoreType)
           
 void setPrivateKeyAlias(String privateKeyAlias)
           
 void setPrivateKeyPass(String privateKeyPass)
           
static void setSamlProperties(Map<String,String> samlProperties)
           
static Document signAssertion(org.opensaml.SAMLAssertion assertion)
           
static org.opensaml.SAMLAssertion unsignAssertion(Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keystoreType

private static String keystoreType

keystoreFile

private static String keystoreFile

keystorePass

private static String keystorePass

privateKeyAlias

private static String privateKeyAlias

privateKeyPass

private static String privateKeyPass

certificateAlias

private static String certificateAlias

samlPropertiesHolder

private static ThreadLocal<Map<String,String>> samlPropertiesHolder
Constructor Detail

SamlUtils

public SamlUtils()
Method Detail

createAssertion

public static org.opensaml.SAMLAssertion createAssertion()
                                                  throws org.opensaml.SAMLException,
                                                         CloneNotSupportedException
Throws:
org.opensaml.SAMLException
CloneNotSupportedException

setSamlProperties

public static void setSamlProperties(Map<String,String> samlProperties)

getSamlProperties

public static Map<String,String> getSamlProperties()

signAssertion

public static Document signAssertion(org.opensaml.SAMLAssertion assertion)
                              throws org.apache.xml.security.exceptions.XMLSecurityException,
                                     KeyStoreException,
                                     NoSuchAlgorithmException,
                                     CertificateException,
                                     IOException,
                                     UnrecoverableKeyException,
                                     ParserConfigurationException,
                                     DOMException,
                                     org.opensaml.SAMLException
Throws:
org.apache.xml.security.exceptions.XMLSecurityException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
UnrecoverableKeyException
ParserConfigurationException
DOMException
org.opensaml.SAMLException

unsignAssertion

public static org.opensaml.SAMLAssertion unsignAssertion(Document doc)
                                                  throws TransformerException,
                                                         org.apache.xml.security.exceptions.XMLSecurityException,
                                                         org.opensaml.SAMLException
Throws:
TransformerException
org.apache.xml.security.exceptions.XMLSecurityException
org.opensaml.SAMLException

getKeystoreType

public String getKeystoreType()
Returns:
the keystoreType

setKeystoreType

public void setKeystoreType(String keystoreType)
Parameters:
keystoreType - the keystoreType to set

getKeystoreFile

public String getKeystoreFile()
Returns:
the keystoreFile

setKeystoreFile

public void setKeystoreFile(String keystoreFile)
Parameters:
keystoreFile - the keystoreFile to set

getKeystorePass

public String getKeystorePass()
Returns:
the keystorePass

setKeystorePass

public void setKeystorePass(String keystorePass)
Parameters:
keystorePass - the keystorePass to set

getPrivateKeyAlias

public String getPrivateKeyAlias()
Returns:
the privateKeyAlias

setPrivateKeyAlias

public void setPrivateKeyAlias(String privateKeyAlias)
Parameters:
privateKeyAlias - the privateKeyAlias to set

getPrivateKeyPass

public String getPrivateKeyPass()
Returns:
the privateKeyPass

setPrivateKeyPass

public void setPrivateKeyPass(String privateKeyPass)
Parameters:
privateKeyPass - the privateKeyPass to set

getCertificateAlias

public String getCertificateAlias()
Returns:
the certificateAlias

setCertificateAlias

public void setCertificateAlias(String certificateAlias)
Parameters:
certificateAlias - the certificateAlias to set


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.