Java Code Examples for javax.security.auth.callback.Callback#getClass()

The following examples show how to use javax.security.auth.callback.Callback#getClass() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SecurityServiceImpl.java    From sql-layer with GNU Affero General Public License v3.0 6 votes vote down vote up
static boolean jettyCallback(Callback callback) {
    if (jettyObjectCallbackClass != null) {
        return jettyObjectCallbackClass.isInstance(callback);
    }
    else if ("org.eclipse.jetty.plus.jaas.callback.ObjectCallback".equals(callback.getClass().getName())) {
        try {
            jettySetObjectMethod = callback.getClass().getMethod("setObject", Object.class);
        }
        catch (ReflectiveOperationException ex) {
            return false;
        }
        jettyObjectCallbackClass = callback.getClass();
        return true;
    }
    else {
        return false;
    }
}
 
Example 2
Source File: UnsupportedCallbackHandler.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
   int len$ = callbacks.length;
   int i$ = 0;
   if (i$ < len$) {
      Callback callback = callbacks[i$];
      LOG.warn("Unable to handle callback: " + callback.getClass());
      throw new UnsupportedCallbackException(callback, "Unable to handle callback: " + callback.getClass());
   }
}
 
Example 3
Source File: UnsupportedCallbackHandler.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
   int len$ = callbacks.length;
   int i$ = 0;
   if (i$ < len$) {
      Callback callback = callbacks[i$];
      LOG.warn("Unable to handle callback: " + callback.getClass());
      throw new UnsupportedCallbackException(callback, "Unable to handle callback: " + callback.getClass());
   }
}
 
Example 4
Source File: UnsupportedCallbackHandler.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
   int len$ = callbacks.length;
   int i$ = 0;
   if (i$ < len$) {
      Callback callback = callbacks[i$];
      LOG.warn("Unable to handle callback: " + callback.getClass());
      throw new UnsupportedCallbackException(callback, "Unable to handle callback: " + callback.getClass());
   }
}
 
Example 5
Source File: UnsupportedCallbackHandler.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
   int len$ = callbacks.length;
   int i$ = 0;
   if (i$ < len$) {
      Callback callback = callbacks[i$];
      LOG.warn("Unable to handle callback: " + callback.getClass());
      throw new UnsupportedCallbackException(callback, "Unable to handle callback: " + callback.getClass());
   }
}
 
Example 6
Source File: UnsupportedCallbackHandler.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
   int len$ = callbacks.length;
   int i$ = 0;
   if (i$ < len$) {
      Callback callback = callbacks[i$];
      LOG.warn("Unable to handle callback: " + callback.getClass());
      throw new UnsupportedCallbackException(callback, "Unable to handle callback: " + callback.getClass());
   }
}