예제 #1
0
 /**
  * Helper method to get admin token. This is not amadmin user but the user configured in
  * serverconfig.xml as super user.
  *
  * @return SSOToken of super admin.
  */
 public static SSOToken getAdminToken() throws SSOException {
   SSOToken adminToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
   if (adminToken == null) {
     I18n i18n = I18n.getInstance(IUMSConstants.UMS_PKG);
     String rbName = i18n.getResBundleName();
     throw new SSOException(rbName, IUMSConstants.NULL_TOKEN, null);
   }
   return (adminToken);
 }