mayi-upms/mayi-upms-biz/src/main/java/com/zf1976/mayi/upms/biz/security/Context.java
public static void revokeAuthentication(String username) {
        if (isOwner(username)) {
            throw new SecurityException("It is not allowed to revoke root authentication.");
        }
       try {
           remoteAuthClient.revoke(securityProperties.getCommunicationToken(), username);
       } catch (Exception e) {
           log.error(e.getMessage(), e);
           throw new SecurityException("system error");
       }
   }
/**
     * revoke user authentication
     *
     * @param username username
     */
revoke user authentication
@param username username
revoke user authentication @param username username
public static void revokeAuthentication(String username) {
        if (isOwner(username)) {
            throw new SecurityException("It is not allowed to revoke root authentication.");
        }
       try {
           remoteAuthClient.revoke(securityProperties.getCommunicationToken(), username);
       } catch (Exception e) {
           log.error(e.getMessage(), e);
           throw new SecurityException("system error");
       }
   }
public static void revokeAuthentication ( String username ) { if ( isOwner ( username ) ) { throw new SecurityException ( "It is not allowed to revoke root authentication." ) ; } try { remoteAuthClient . revoke ( securityProperties . getCommunicationToken ( ) , username ) ; } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; throw new SecurityException ( "system error" ) ; } }
revoke user authentication
 @param username username
revoke user authentication @param username username