class IntegratedSecurityService implements SecurityService {

  @Override
  public ThreadState bindSubject(final Subject subject) {
    if (subject == null) {
      throw new AuthenticationRequiredException("Failed to find the authenticated user.");
    }

    ThreadState threadState = new SubjectThreadState(subject);
    threadState.bind();
    return threadState;
  }

    IntegratedSecurityService(SecurityManagerProvider provider, PostProcessor postProcessor);

}