Package net.jini.security

Examples of net.jini.security.AuthenticationPermission


    /**
     * Return an instance with the given target and connect action.
     */
    public static AuthenticationPermission cp(String name) {
  return new AuthenticationPermission(name, "connect");
    }
View Full Code Here


    /**
     * Return an instance with the given target and delegate action.
     */
    public static AuthenticationPermission dp(String name) {
  return new AuthenticationPermission(name, "delegate");
    }
View Full Code Here

    /**
     * Return an instance with the given target and accept action.
     */
    public static AuthenticationPermission ap(String name) {
  return new AuthenticationPermission(name, "accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and connect+accept actions.
     */
    public static AuthenticationPermission cap(String name) {
  return new AuthenticationPermission(name, "connect,accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and delegate+accept actions.
     */
    public static AuthenticationPermission dap(String name) {
  return new AuthenticationPermission(name, "delegate,accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and listen action.
     */
    public static AuthenticationPermission lp(String name) {
  return new AuthenticationPermission(name, "listen");
    }
View Full Code Here

    /**
     * Return an instance with the given target and connect+listen actions.
     */
    public static AuthenticationPermission clp(String name) {
  return new AuthenticationPermission(name, "connect,listen");
    }
View Full Code Here

    /**
     * Return an instance with the given target and delegate+listen actions.
     */
    public static AuthenticationPermission dlp(String name) {
  return new AuthenticationPermission(name, "delegate,listen");
    }
View Full Code Here

     * Check that the string is not a valid target.
     */
    public static void bad(String name, String why) throws Exception {
  check(new AP(name, "connect"), why);
  try {
      new AuthenticationPermission(name, "connect");
  } catch (IllegalArgumentException e) {
      if (why.equals(e.getMessage())) {
    return;
      }
      throw e;
View Full Code Here

    /**
     * Return an instance with the given action.
     */
    public static AuthenticationPermission act(String action) {
  return new AuthenticationPermission("c \"n\"", action);
    }
View Full Code Here

TOP

Related Classes of net.jini.security.AuthenticationPermission

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.