Constructor and Description |
---|
SamlUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public SamlUtils()
public static org.opensaml.SAMLAssertion createAssertion() throws org.opensaml.SAMLException, CloneNotSupportedException
org.opensaml.SAMLException
CloneNotSupportedException
public static void setSamlProperties(Map<String,String> samlProperties)
public static Map<String,String> getSamlProperties()
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
org.apache.xml.security.exceptions.XMLSecurityException
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
UnrecoverableKeyException
ParserConfigurationException
DOMException
org.opensaml.SAMLException
public static org.opensaml.SAMLAssertion unsignAssertion(Document doc) throws TransformerException, org.apache.xml.security.exceptions.XMLSecurityException, org.opensaml.SAMLException
TransformerException
org.apache.xml.security.exceptions.XMLSecurityException
org.opensaml.SAMLException
public String getKeystoreType()
public void setKeystoreType(String keystoreType)
keystoreType
- the keystoreType to setpublic String getKeystoreFile()
public void setKeystoreFile(String keystoreFile)
keystoreFile
- the keystoreFile to setpublic String getKeystorePass()
public void setKeystorePass(String keystorePass)
keystorePass
- the keystorePass to setpublic String getPrivateKeyAlias()
public void setPrivateKeyAlias(String privateKeyAlias)
privateKeyAlias
- the privateKeyAlias to setpublic String getPrivateKeyPass()
public void setPrivateKeyPass(String privateKeyPass)
privateKeyPass
- the privateKeyPass to setpublic String getCertificateAlias()
public void setCertificateAlias(String certificateAlias)
certificateAlias
- the certificateAlias to setCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.