AuthenticationInfo buildAuthInfo()

in src/main/java/org/apache/sling/auth/saml2/impl/AuthenticationHandlerSAML2Impl.java [535:544]


    AuthenticationInfo buildAuthInfo(final User user){
        try {
            AuthenticationInfo authInfo = new AuthenticationInfo(AUTH_TYPE, user.getID());
            authInfo.put("user.jcr.credentials", new Saml2Credentials(user.getID()));
            return authInfo;
        } catch (RepositoryException e) {
            logger.error("failed to build Authentication Info");
            throw new SAML2RuntimeException(e);
        }
    }