protected void success ( HttpServletRequest httpRequest , HttpServletResponse httpResponse , String principal , List < Attribute > attributes , String authnContextClassUri , DateTime authnInstant , Boolean cacheForSSO ) throws ExternalAuthenticationException , IOException { SubjectBuilder builder = this . getSubjectBuilder ( principal ) ; for ( Attribute a : attributes ) { builder . attribute ( a ) ; } builder . authnContextClassRef ( authnContextClassUri ) ; this . success ( httpRequest , httpResponse , builder . build ( ) , authnInstant , cacheForSSO ) ; }
Method that should be invoked to exit the external authentication process with a successful result .