Class PreAuthenticatedAuthenticationToken

    • Constructor Detail

      • PreAuthenticatedAuthenticationToken

        public PreAuthenticatedAuthenticationToken​(java.lang.Object aPrincipal,
                                                   java.lang.Object aCredentials)
        Constructor used for an authentication request. The Authentication.isAuthenticated() will return false.
        Parameters:
        aPrincipal - The pre-authenticated principal
        aCredentials - The pre-authenticated credentials
      • PreAuthenticatedAuthenticationToken

        public PreAuthenticatedAuthenticationToken​(java.lang.Object aPrincipal,
                                                   java.lang.Object aCredentials,
                                                   java.util.Collection<? extends GrantedAuthority> anAuthorities)
        Constructor used for an authentication response. The Authentication.isAuthenticated() will return true.
        Parameters:
        aPrincipal - The authenticated principal
        anAuthorities - The granted authorities
    • Method Detail

      • getCredentials

        public java.lang.Object getCredentials()
        Get the credentials
        Returns:
        the credentials that prove the identity of the Principal
      • getPrincipal

        public java.lang.Object getPrincipal()
        Get the principal
        Returns:
        the Principal being authenticated or the authenticated principal after authentication.