Apache CXF API

org.apache.cxf.sts.token.provider
Class SamlCallbackHandler

java.lang.Object
  extended by org.apache.cxf.sts.token.provider.SamlCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class SamlCallbackHandler
extends Object
implements CallbackHandler

This CallbackHandler implementation is populated with SAML Beans by the SAMLTokenProvider, and is tasked with setting them on a SAMLCallback object, which will be parsed (by WSS4J) into a SAML Assertion.


Constructor Summary
SamlCallbackHandler()
           
 
Method Summary
 void handle(Callback[] callbacks)
           
 void setAttributeBeans(List<org.apache.wss4j.common.saml.bean.AttributeStatementBean> attributeBeanList)
          Set the list of AttributeStatementBeans.
 void setAuthDecisionStatementBeans(List<org.apache.wss4j.common.saml.bean.AuthDecisionStatementBean> authDecisionBeanList)
          Set the list of AuthDecisionStatementBeans.
 void setAuthenticationBeans(List<org.apache.wss4j.common.saml.bean.AuthenticationStatementBean> authBeanList)
          Set the list of AuthenticationStatementBeans.
 void setConditionsBean(org.apache.wss4j.common.saml.bean.ConditionsBean conditionsBean)
          Set the ConditionsBean
 void setIssuer(String issuerName)
          Set the issuer name
 void setSubjectBean(org.apache.wss4j.common.saml.bean.SubjectBean subjectBean)
          Set the SubjectBean
 void setTokenProviderParameters(TokenProviderParameters tokenProviderParameters)
          Set the TokenProviderParameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamlCallbackHandler

public SamlCallbackHandler()
Method Detail

setAttributeBeans

public void setAttributeBeans(List<org.apache.wss4j.common.saml.bean.AttributeStatementBean> attributeBeanList)
Set the list of AttributeStatementBeans.


setAuthenticationBeans

public void setAuthenticationBeans(List<org.apache.wss4j.common.saml.bean.AuthenticationStatementBean> authBeanList)
Set the list of AuthenticationStatementBeans.


setAuthDecisionStatementBeans

public void setAuthDecisionStatementBeans(List<org.apache.wss4j.common.saml.bean.AuthDecisionStatementBean> authDecisionBeanList)
Set the list of AuthDecisionStatementBeans.


setSubjectBean

public void setSubjectBean(org.apache.wss4j.common.saml.bean.SubjectBean subjectBean)
Set the SubjectBean


setConditionsBean

public void setConditionsBean(org.apache.wss4j.common.saml.bean.ConditionsBean conditionsBean)
Set the ConditionsBean


setTokenProviderParameters

public void setTokenProviderParameters(TokenProviderParameters tokenProviderParameters)
Set the TokenProviderParameters.


setIssuer

public void setIssuer(String issuerName)
Set the issuer name


handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException

Apache CXF API

Apache CXF