All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.dropwizard.simpleauth.AuthPrincipal Maven / Gradle / Ivy

package org.whispersystems.dropwizard.simpleauth;

import javax.security.auth.Subject;
import java.security.Principal;

public class AuthPrincipal implements Principal {

  private final Object authenticated;

  public AuthPrincipal(Object authenticated) {
    this.authenticated = authenticated;
  }

  @Override
  public String getName() {
    return null;
  }

  @Override
  public boolean implies(Subject subject) {
    return false;
  }

  public Object getAuthenticated() {
    return authenticated;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy