public final class AdvisoryPermissionParser extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the string encoding of this
Parses the encoded permission and instantiates it using the provided ClassLoader.
public static Permission parse(String encodedPermission, ClassLoader loader)
public static String getEncoded(Permission perm)
public static String getEncoded(String type, String name, String actions)
Permissionin a form suitable for restoring this
The encoded format is:
(type "name" "actions")where name and actions are strings that must be encoded for proper parsing. Specifically, the
\, carriage return, and line feed characters must be escaped using
The encoded string contains no leading or trailing whitespace characters. A single space character is used between type and "name" and between "name" and "actions".
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.