Spring Security SAML

org.springframework.security.saml.parser
Class SAMLBase<T extends org.opensaml.xml.XMLObject,U>

java.lang.Object
  extended by org.springframework.security.saml.parser.SAMLBase<T,U>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SAMLCollection, SAMLObject

public abstract class SAMLBase<T extends org.opensaml.xml.XMLObject,U>
extends Object
implements Serializable

Base class for implementing holders for XML objects capable of serialization.

Author:
Vladimir Schafer
See Also:
Serialized Form

Field Summary
protected static org.slf4j.Logger log
           
protected  U object
          Parsed instance.
protected  Serializable serializedObject
          Version of the value stored within object transferable during serialization.
 
Constructor Summary
protected SAMLBase(U object)
          Default constructor.
 
Method Summary
 boolean equals(Object o)
           
 U getObject()
           
 int hashCode()
           
protected  T unmarshallMessage(Reader messageStream)
          Helper method that deserializes and unmarshalls the message from the given stream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.slf4j.Logger log

serializedObject

protected Serializable serializedObject
Version of the value stored within object transferable during serialization.


object

protected transient U object
Parsed instance.

Constructor Detail

SAMLBase

protected SAMLBase(U object)
Default constructor.

Parameters:
object - object to be stored within object and made serializable
Method Detail

getObject

public U getObject()
Returns:
stored object in non-serialized format

unmarshallMessage

protected T unmarshallMessage(Reader messageStream)
                                                          throws org.opensaml.ws.message.decoder.MessageDecodingException
Helper method that deserializes and unmarshalls the message from the given stream.

Parameters:
messageStream - input stream containing the message
Returns:
the inbound message
Throws:
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if there is a problem deserializing and unmarshalling the message

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Spring Security SAML