|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.ws.message.encoder.BaseMessageEncoder
org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder
public abstract class BaseSAML2MessageEncoder
Base class for SAML 2 message encoders.
| Constructor Summary | |
|---|---|
BaseSAML2MessageEncoder()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkRelayState(java.lang.String relayState)
Checks that the relay state is 80 bytes or less if it is not null. |
java.util.List<java.lang.String> |
getAllowedURLSchemes()
Gets the unmodifiable list of schemes allowed to appear in URLs related to the encoded message. |
protected org.opensaml.util.URLBuilder |
getEndpointURL(SAMLMessageContext messageContext)
Gets the response URL from the relying party endpoint. |
void |
setAllowedURLSchemes(java.lang.String[] schemes)
Sets the list of list of schemes allowed to appear in URLs related to the encoded message. |
protected void |
setResponseDestination(SAMLObject outboundMessage,
java.lang.String endpointURL)
Sets the destination attribute on the outbound message if it is a StatusResponseType message. |
protected void |
signMessage(SAMLMessageContext messageContext)
Signs the given SAML message if it a SignableSAMLObject and this encoder has signing credentials. |
| Methods inherited from class org.opensaml.ws.message.encoder.BaseMessageEncoder |
|---|
doEncode, encode, logEncodedMessage, marshallMessage |
| 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.SAMLMessageEncoder |
|---|
getBindingURI |
| Methods inherited from interface org.opensaml.ws.message.encoder.MessageEncoder |
|---|
encode, providesMessageConfidentiality, providesMessageIntegrity |
| Constructor Detail |
|---|
public BaseSAML2MessageEncoder()
| Method Detail |
|---|
public java.util.List<java.lang.String> getAllowedURLSchemes()
public void setAllowedURLSchemes(java.lang.String[] schemes)
schemes - URL schemes allowed to appear in a message
protected org.opensaml.util.URLBuilder getEndpointURL(SAMLMessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
StatusResponseType and the relying
party endpoint contains a response location then that location is returned otherwise the normal endpoint location
is returned.
messageContext - current message context
org.opensaml.ws.message.encoder.MessageEncodingException - throw if no relying party endpoint is availableprotected boolean checkRelayState(java.lang.String relayState)
relayState - relay state to check
protected void setResponseDestination(SAMLObject outboundMessage,
java.lang.String endpointURL)
StatusResponseType message.
outboundMessage - outbound SAML messageendpointURL - destination endpoint
protected void signMessage(SAMLMessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
SignableSAMLObject and this encoder has signing credentials.
messageContext - current message context
org.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem marshalling or signing the outbound message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||