protected String getExternalAuthenticationKey ( HttpServletRequest httpRequest ) throws ExternalAuthenticationException { String key = ( String ) httpRequest . getSession ( ) . getAttribute ( EXTAUTHN_KEY_ATTRIBUTE_NAME ) ; if ( key == null ) { throw new ExternalAuthenticationException ( "No external authentication process is active" ) ; } return key ; }
Returns the Shibboleth external authentication key for the current session .