Class SamlIdPObjectSigner
- java.lang.Object
-
- org.apereo.cas.support.saml.web.idp.profile.builders.enc.SamlIdPObjectSigner
-
public class SamlIdPObjectSigner extends java.lang.ObjectThis isSamlIdPObjectSigner.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description SamlIdPObjectSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.opensaml.xmlsec.SignatureSigningParametersbuildSignatureSigningParameters(org.opensaml.saml.saml2.metadata.RoleDescriptor descriptor, org.apereo.cas.support.saml.services.SamlRegisteredService service)Build signature signing parameters signature signing parameters.<T extends org.opensaml.saml.common.SAMLObject>
Tencode(T samlObject, org.apereo.cas.support.saml.services.SamlRegisteredService service, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)Encode a given saml object by invoking a number of outbound security handlers on the context.protected org.opensaml.xmlsec.SignatureSigningConfigurationgetSignatureSigningConfiguration(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor, org.apereo.cas.support.saml.services.SamlRegisteredService service)Gets signature signing configuration.protected java.security.PrivateKeygetSigningPrivateKey()Gets signing private key.protected <T extends org.opensaml.saml.common.SAMLObject>
voidprepareEndpointURLSchemeSecurityHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext)Prepare endpoint url scheme security handler.protected <T extends org.opensaml.saml.common.SAMLObject>
voidprepareOutboundContext(T samlObject, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.messaging.context.MessageContext<T> outboundContext, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest)Prepare outbound context.protected <T extends org.opensaml.saml.common.SAMLObject>
voidprepareSamlOutboundDestinationHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext)Prepare saml outbound destination handler.protected <T extends org.opensaml.saml.common.SAMLObject>
voidprepareSamlOutboundProtocolMessageSigningHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext)Prepare saml outbound protocol message signing handler.protected <T extends org.opensaml.saml.common.SAMLObject>
voidprepareSecurityParametersContext(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.messaging.context.MessageContext<T> outboundContext, org.apereo.cas.support.saml.services.SamlRegisteredService service)Prepare security parameters context.
-
-
-
Method Detail
-
encode
public <T extends org.opensaml.saml.common.SAMLObject> T encode(T samlObject, org.apereo.cas.support.saml.services.SamlRegisteredService service, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest) throws org.apereo.cas.support.saml.SamlExceptionEncode a given saml object by invoking a number of outbound security handlers on the context.- Type Parameters:
T- the type parameter- Parameters:
samlObject- the saml objectservice- the serviceadaptor- the adaptorresponse- the responserequest- the requestbinding- the bindingauthnRequest- the authn request- Returns:
- the t
- Throws:
org.apereo.cas.support.saml.SamlException- the saml exception
-
prepareSamlOutboundProtocolMessageSigningHandler
protected <T extends org.opensaml.saml.common.SAMLObject> void prepareSamlOutboundProtocolMessageSigningHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext) throws java.lang.ExceptionPrepare saml outbound protocol message signing handler.- Type Parameters:
T- the type parameter- Parameters:
outboundContext- the outbound context- Throws:
java.lang.Exception- the exception
-
prepareSamlOutboundDestinationHandler
protected <T extends org.opensaml.saml.common.SAMLObject> void prepareSamlOutboundDestinationHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext) throws java.lang.ExceptionPrepare saml outbound destination handler.- Type Parameters:
T- the type parameter- Parameters:
outboundContext- the outbound context- Throws:
java.lang.Exception- the exception
-
prepareEndpointURLSchemeSecurityHandler
protected <T extends org.opensaml.saml.common.SAMLObject> void prepareEndpointURLSchemeSecurityHandler(org.opensaml.messaging.context.MessageContext<T> outboundContext) throws java.lang.ExceptionPrepare endpoint url scheme security handler.- Type Parameters:
T- the type parameter- Parameters:
outboundContext- the outbound context- Throws:
java.lang.Exception- the exception
-
prepareSecurityParametersContext
protected <T extends org.opensaml.saml.common.SAMLObject> void prepareSecurityParametersContext(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.messaging.context.MessageContext<T> outboundContext, org.apereo.cas.support.saml.services.SamlRegisteredService service)Prepare security parameters context.- Type Parameters:
T- the type parameter- Parameters:
adaptor- the adaptoroutboundContext- the outbound contextservice- the service
-
prepareOutboundContext
protected <T extends org.opensaml.saml.common.SAMLObject> void prepareOutboundContext(T samlObject, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.messaging.context.MessageContext<T> outboundContext, java.lang.String binding, org.opensaml.saml.saml2.core.RequestAbstractType authnRequest) throws org.apereo.cas.support.saml.SamlExceptionPrepare outbound context.- Type Parameters:
T- the type parameter- Parameters:
samlObject- the saml objectadaptor- the adaptoroutboundContext- the outbound contextbinding- the bindingauthnRequest- the authn request- Throws:
org.apereo.cas.support.saml.SamlException- the saml exception
-
buildSignatureSigningParameters
protected org.opensaml.xmlsec.SignatureSigningParameters buildSignatureSigningParameters(org.opensaml.saml.saml2.metadata.RoleDescriptor descriptor, org.apereo.cas.support.saml.services.SamlRegisteredService service)Build signature signing parameters signature signing parameters.- Parameters:
descriptor- the descriptorservice- the service- Returns:
- the signature signing parameters
-
getSignatureSigningConfiguration
protected org.opensaml.xmlsec.SignatureSigningConfiguration getSignatureSigningConfiguration(org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor, org.apereo.cas.support.saml.services.SamlRegisteredService service) throws java.lang.ExceptionGets signature signing configuration.- Parameters:
roleDescriptor- the role descriptorservice- the service- Returns:
- the signature signing configuration
- Throws:
java.lang.Exception- the exception
-
getSigningPrivateKey
protected java.security.PrivateKey getSigningPrivateKey() throws java.lang.ExceptionGets signing private key.- Returns:
- the signing private key
- Throws:
java.lang.Exception- the exception
-
-