|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.common.binding.encoding.impl.AbstractMessageEncoder<javax.servlet.http.HttpServletResponse>
org.opensaml.common.binding.encoding.impl.AbstractHTTPMessageEncoder
org.opensaml.saml2.binding.encoding.AbstractSAML2HTTPMessageEncoder
org.opensaml.saml2.binding.encoding.HTTPRedirectDeflateEncoder
public class HTTPRedirectDeflateEncoder
SAML 2.0 HTTP Redirect encoder using the DEFLATE encoding method. This encoder only supports DEFLATE compression and DSA-SHA1 and RSA-SHA1 signatures.
Field Summary | |
---|---|
static java.lang.String |
BINDING_URI
URI for this binding. |
static java.lang.String |
DSA_SHA1_SIGNATURE
DSA with SHA1 signature algorithm. |
static java.lang.String |
RSA_SHA1_SIGNATURE
RSA with SHA1 signature algorithm. |
Constructor Summary | |
---|---|
HTTPRedirectDeflateEncoder()
|
Method Summary | |
---|---|
protected java.lang.String |
buildRedirectURL(java.lang.String message)
Builds the URL to redirect the client to. |
protected byte[] |
defalteAndBase64Encode(SAMLObject message)
DEFLATE (RFC1951) compresses the given SAML message. |
void |
encode()
Encode the SAML message in the binding specific manner. |
protected java.lang.String |
generateSignature(java.lang.String algorithm,
java.lang.String queryString)
Generates the signature over the query string. |
java.lang.String |
getBindingURI()
Gets the binding URI supported by this encoder. |
protected java.lang.String |
getSignatureAlgorithm()
Gets the signature algorithm to use with the given signing credential. |
protected void |
removeSignature()
Removes the signature from the protocol message. |
Methods inherited from class org.opensaml.saml2.binding.encoding.AbstractSAML2HTTPMessageEncoder |
---|
checkRelayState, getEndpointURL, signMessage |
Methods inherited from class org.opensaml.common.binding.encoding.impl.AbstractHTTPMessageEncoder |
---|
getBase64EncodedMessage, getEncodeRelayState, getRelayState, initializeResponse, setRelayState |
Methods inherited from class org.opensaml.common.binding.encoding.impl.AbstractMessageEncoder |
---|
getIssuer, getMetadataProvider, getRelyingParty, getRelyingPartyEndpoint, getRelyingPartyRole, getResponse, getSamlMessage, getSigningCredential, marshallMessage, setIssuer, setMetadataProvider, setRelyingParty, setRelyingPartyEndpoint, setRelyingPartyRole, setResponse, setSamlMessage, setSigningCredential |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.common.binding.encoding.MessageEncoder |
---|
getIssuer, getMetadataProvider, getRelyingParty, getRelyingPartyEndpoint, getRelyingPartyRole, getResponse, getSamlMessage, getSigningCredential, setIssuer, setMetadataProvider, setRelyingParty, setRelyingPartyEndpoint, setRelyingPartyRole, setResponse, setSamlMessage, setSigningCredential |
Field Detail |
---|
public static final java.lang.String BINDING_URI
public static final java.lang.String DSA_SHA1_SIGNATURE
public static final java.lang.String RSA_SHA1_SIGNATURE
Constructor Detail |
---|
public HTTPRedirectDeflateEncoder()
Method Detail |
---|
public java.lang.String getBindingURI()
public void encode() throws BindingException
BindingException
- thrown if the problem can not be encodedprotected void removeSignature()
protected byte[] defalteAndBase64Encode(SAMLObject message) throws BindingException
message
- SAML message
BindingException
- thrown if there is a problem compressing the messageprotected java.lang.String buildRedirectURL(java.lang.String message) throws BindingException
message
- base64 encoded SAML message
BindingException
- thrown if the SAML message is neither a RequestAbstractType or Responseprotected java.lang.String getSignatureAlgorithm() throws BindingException
BindingException
- thrown if the provided credential's private key is not an RSA or DSA keyprotected java.lang.String generateSignature(java.lang.String algorithm, java.lang.String queryString) throws BindingException
algorithm
- algorithm that should be used to sign the query stringqueryString
- query string to be signed
BindingException
- there is an error computing the signature
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |