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