@Override
  public void authorize(Resource resource, Operation operation, String target, Object key) {
    String keystr = null;
    if (key != null) {
      keystr = key.toString();
    }
    authorize(new ResourcePermission(resource, operation, target, keystr));
  }
Binds the passed-in subject to the executing thread. Usage:

<pre>
ThreadState state = null;
try {
  state = securityService.bindSubject(subject);
  // do the rest of the work as this subject
} finally {
  if (state != null) {
    state.clear();
  }
}
</pre>
geode-core/src/main/java/org/apache/geode/internal/security/IntegratedSecurityService.java