when I am trying to get principal user name using this
Authentication authenticationt=SecurityContextHolder.getContext().getAuthentication();
String currentPrincipalName =authenticationt.getName();
instead of user name I am getting this response org.opensaml.saml2.core.impl.NameIDImpl@2a7df764