/**
  * @return true if the credentials are not null and the credentials class is equal to the class
  *     defined in classToSupport.
  */
 public final boolean supports(final Credentials credentials) {
   return credentials != null
       && (this.classToSupport.equals(credentials.getClass())
           || (this.classToSupport.isAssignableFrom(credentials.getClass()))
               && this.supportSubClasses);
 }
 public boolean supports(final Credentials credentials) {
   return credentials != null && (TokenCredentials.class.isAssignableFrom(credentials.getClass()));
 }