Package org.glite.authz.pap.common.exceptions

Examples of org.glite.authz.pap.common.exceptions.VOMSSyntaxException


  if (containerName == null)
      throw new NullArgumentException("containerName ==  null");

  if (containerName.length() > 255)
      throw new VOMSSyntaxException("containerName.length() > 255");

  if (!containerPattern.matcher(containerName).matches())
      throw new VOMSSyntaxException("Syntax error in container name: "
        + containerName);
    }
View Full Code Here


    public static void checkGroup(String groupName) {

  checkSyntax(groupName);

  if (!groupPattern.matcher(groupName).matches())
      throw new VOMSSyntaxException("Syntax error in group name: "
        + groupName);
    }
View Full Code Here

  if (roleName == null)
      throw new NullArgumentException("roleName == null");

  if (roleName.length() > 255)
      throw new VOMSSyntaxException("roleName.length()>255");

  if (!rolePattern.matcher(roleName).matches())
      throw new VOMSSyntaxException("Syntax error in role name: "
        + roleName);
    }
View Full Code Here

    }

    public static String getRoleName(String containerName) {

  if (!isRole(containerName) && !isQualifiedRole(containerName))
      throw new VOMSSyntaxException("No role specified in \""
        + containerName + "\" voms syntax.");

  Matcher m = containerPattern.matcher(containerName);

  if (m.matches()) {
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.exceptions.VOMSSyntaxException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.