code: public void authorize(GSSContext context, String host)
  	throws AuthorizationException {
  	logger.debug("Authorization: HOST/SELF");
  
  	try {
  
              GSSName expected = this.hostAuthz.getExpectedName(null, host);
  
              GSSName target = null;
              if (context.isInitiator()) {
                  target = context.getTargName();
              } else {
                  target = context.getSrcName();
              }
  
              if (!expected.equals(target)) {
                  logger.debug("Host authorization failed. Expected "
                               + expected + " target is " + target);
  
                  if (!context.getSrcName().equals(context.getTargName())) {
                      if (context.isInitiator()) {
                          expected = context.getSrcName();
                      } else {
                          expected = context.getTargName();
                      }
                      generateAuthorizationException(expected, target);
                  }
              }
  	} catch (GSSException e) {
  	    throw new AuthorizationException("Authorization failure", e);
  	}
      }
docs: Performs host authorization. If that fails, performs self authorization