class UsernamePasswordCredentialToPrincipalResolver implements CredentialToPrincipalResolver {

	@Override
	public boolean supports(Credential credential) {
		return credential != null
		&& (this.classToSupport.equals(credential.getClass()) || (this.classToSupport
				.isAssignableFrom(credential.getClass()))
				&& this.supportSubClasses);
	}

}