public static String logSamlObject ( final OpenSamlConfigBean configBean , final XMLObject samlObject ) throws SamlException { val repeat = "*" . repeat ( SAML_OBJECT_LOG_ASTERIXLINE_LENGTH ) ; LOGGER . debug ( repeat ) ; try ( val writer = transformSamlObject ( configBean , samlObject , true ) ) { LOGGER . debug ( "Logging [{}]\n\n[{}]\n\n" , samlObject . getClass ( ) . getName ( ) , writer ) ; LOGGER . debug ( repeat ) ; return writer . toString ( ) ; } catch ( final Exception e ) { throw new SamlException ( e . getMessage ( ) , e ) ; } }
Log saml object .