Returns the {@code token}'s credentials.
<p/>
<p>This default implementation merely returns
{@link AuthenticationToken#getCredentials() authenticationToken.getCredentials()} and exists as a template hook
if subclasses wish to obtain the credentials in a different way or convert them to a different format before
returning.
@param token the {@code AuthenticationToken} submitted during the authentication attempt.
@return the {@code token}'s associated credentials.
Returns the {@code token}'s credentials. <p/> <p>This default implementation merely returns {@link AuthenticationToken#getCredentials() authenticationToken.getCredentials()} and exists as a template hook if subclasses wish to obtain the credentials in a different way or convert them to a different format before returning.
@param token the {@code AuthenticationToken} submitted during the authentication attempt. @return the {@code token}'s associated credentials.