|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.ws.message.encoder.BaseMessageEncoder org.opensaml.saml1.binding.encoding.BaseSAML1MessageEncoder
public abstract class BaseSAML1MessageEncoder
Base class for SAML 1 message encoders.
Field Summary | |
---|---|
private List<String> |
allowedURLSchemes
The list of schemes allowed to appear in URLs related to the encoded message. |
private org.slf4j.Logger |
log
Class logger. |
Constructor Summary | |
---|---|
BaseSAML1MessageEncoder()
|
Method Summary | |
---|---|
List<String> |
getAllowedURLSchemes()
Gets the unmodifiable list of schemes allowed to appear in URLs related to the encoded message. |
protected URLBuilder |
getEndpointURL(SAMLMessageContext messageContext)
Gets the response URL from the relying party endpoint. |
void |
setAllowedURLSchemes(String[] schemes)
Sets the list of list of schemes allowed to appear in URLs related to the encoded 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 |
Field Detail |
---|
private final org.slf4j.Logger log
private List<String> allowedURLSchemes
Constructor Detail |
---|
public BaseSAML1MessageEncoder()
Method Detail |
---|
public List<String> getAllowedURLSchemes()
public void setAllowedURLSchemes(String[] schemes)
schemes
- URL schemes allowed to appear in a messageprotected URLBuilder getEndpointURL(SAMLMessageContext messageContext) throws MessageEncodingException
Response
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
MessageEncodingException
- throw if no relying party endpoint is availableprotected void signMessage(SAMLMessageContext messageContext) throws MessageEncodingException
SignableSAMLObject
and this encoder has signing credentials.
messageContext
- current message context
MessageEncodingException
- thrown if there is a problem preparing the signature for signing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |