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)

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
 

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-2012 The Kuali Foundation. All Rights Reserved.