method determines what will be stored as principal of the created authentication object . by default when forceprincipalasstring is true string representation of the nameid returned from saml message is used . otherwise userdetail object is used , when set , when not nameid object from the credential is returned . other implementations can be created by overriding the method . concode_field_sep Logger log concode_elem_sep boolean forcePrincipalAsString concode_elem_sep SAMLLogger samlLogger concode_elem_sep WebSSOProfileConsumer hokConsumer concode_elem_sep SAMLUserDetailsService userDetails concode_elem_sep WebSSOProfileConsumer consumer concode_elem_sep boolean excludeCredential concode_field_sep void setHokConsumer concode_elem_sep Authentication authenticate concode_elem_sep void setUserDetails concode_elem_sep void setConsumer concode_elem_sep Collection<? extends GrantedAuthority> getEntitlements concode_elem_sep Date getExpirationDate concode_elem_sep void setForcePrincipalAsString concode_elem_sep Object getUserDetails concode_elem_sep SAMLUserDetailsService getUserDetails concode_elem_sep void setSamlLogger concode_elem_sep boolean isExcludeCredential concode_elem_sep boolean isForcePrincipalAsString concode_elem_sep void afterPropertiesSet concode_elem_sep boolean supports concode_elem_sep void setExcludeCredential
Object function ( SAMLCredential arg0 , Object arg1 ) { if ( isForcePrincipalAsString ( ) ) { return arg0 . getNameID ( ) . getValue ( ) ; } else if ( arg1 != null ) { return arg1 ; } else { return arg0 . getNameID ( ) ; } }