@Component public class SAML2ReaderWriter extends Object
| Constructor and Description |
|---|
SAML2ReaderWriter() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(org.opensaml.saml.saml2.core.RequestAbstractType request,
boolean useDeflateEncoding) |
String |
getSigAlgo() |
void |
init() |
org.opensaml.core.xml.XMLObject |
read(boolean useDeflateEncoding,
String response) |
void |
sign(org.opensaml.saml.common.SignableSAMLObject signableObject) |
String |
sign(String request,
String relayState) |
org.apache.cxf.rs.security.saml.sso.SSOValidatorResponse |
validate(org.opensaml.saml.saml2.core.Response samlResponse,
SAML2IdPEntity idp,
String assertionConsumerURL,
String requestId,
String spEntityID) |
void |
write(Writer writer,
org.opensaml.core.xml.XMLObject object,
boolean signObject) |
public void init()
public String getSigAlgo()
public void write(Writer writer, org.opensaml.core.xml.XMLObject object, boolean signObject) throws TransformerConfigurationException, org.apache.wss4j.common.ext.WSSecurityException, TransformerException
TransformerConfigurationExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionTransformerExceptionpublic org.opensaml.core.xml.XMLObject read(boolean useDeflateEncoding,
String response)
throws DataFormatException,
UnsupportedEncodingException,
XMLStreamException,
org.apache.wss4j.common.ext.WSSecurityException
DataFormatExceptionUnsupportedEncodingExceptionXMLStreamExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionpublic void sign(org.opensaml.saml.common.SignableSAMLObject signableObject)
throws org.opensaml.security.SecurityException
org.opensaml.security.SecurityExceptionpublic String sign(String request, String relayState) throws NoSuchAlgorithmException, org.apache.wss4j.common.ext.WSSecurityException, InvalidKeyException, UnsupportedEncodingException, SignatureException
NoSuchAlgorithmExceptionorg.apache.wss4j.common.ext.WSSecurityExceptionInvalidKeyExceptionUnsupportedEncodingExceptionSignatureExceptionpublic String encode(org.opensaml.saml.saml2.core.RequestAbstractType request, boolean useDeflateEncoding) throws org.apache.wss4j.common.ext.WSSecurityException, TransformerException, IOException
org.apache.wss4j.common.ext.WSSecurityExceptionTransformerExceptionIOExceptionpublic org.apache.cxf.rs.security.saml.sso.SSOValidatorResponse validate(org.opensaml.saml.saml2.core.Response samlResponse,
SAML2IdPEntity idp,
String assertionConsumerURL,
String requestId,
String spEntityID)
throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionCopyright © 2010–2019 The Apache Software Foundation. All rights reserved.