protected void signAssertion ( final Assertion assertion , final HttpServletRequest request , final HttpServletResponse response , final SamlRegisteredService service , final SamlRegisteredServiceServiceProviderMetadataFacade adaptor , final String binding , final RequestAbstractType authnRequest ) throws SamlException { if ( service . isSignAssertions ( ) ) { LOGGER . debug ( "SAML registered service [{}] requires assertions to be signed" , adaptor . getEntityId ( ) ) ; samlObjectSigner . encode ( assertion , service , adaptor , response , request , binding , authnRequest ) ; } else { LOGGER . debug ( "SAML registered service [{}] does not require assertions to be signed" , adaptor . getEntityId ( ) ) ; } }
Sign assertion .