public void discardAuthToken(DiscardAuthToken body) throws RemoteException { security.discardAuthToken(body); }
public void discardAuthToken(DiscardAuthToken body) throws RemoteException { security.discardAuthToken(body); }
/** * kills the provided auth token, aka Logout * * @param token * @param endpoint */ public void discardAuthToken(String token, String endpoint) { if (token != null) { try { DiscardAuthToken discardAuthToken = new DiscardAuthToken(); discardAuthToken.setAuthInfo(token); getUDDINode().getTransport().getUDDISecurityService(endpoint).discardAuthToken(discardAuthToken); token = null; } catch (Exception ex) { log.warn("Error discarding auth token: " + ex.getMessage()); log.debug("Error discarding auth token: " + ex.getMessage(), ex); } } }
/** * kills the provided auth token, aka Logout * * @param token */ public void discardAuthToken(String token) { if (token != null) { try { DiscardAuthToken discardAuthToken = new DiscardAuthToken(); discardAuthToken.setAuthInfo(token); getUDDINode().getTransport().getUDDISecurityService(getUDDINode().getSecurityUrl()).discardAuthToken(discardAuthToken); token = null; } catch (Exception ex) { log.warn("Error discarding auth token: " + ex.getMessage()); log.debug("Error discarding auth token: " + ex.getMessage(), ex); } } }
DiscardAuthToken discardAuthToken = new DiscardAuthToken(); discardAuthToken.setAuthInfo(authToken); getUDDINode().getTransport().getUDDISecurityService(endpointURL).discardAuthToken(discardAuthToken); authToken = null;