/** readObject is called to restore the state of the ServicePermission from a stream. */ private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { // Read in the action, then initialize the rest s.defaultReadObject(); init(getName(), getMask(actions)); }
/** * Create a new <code>ServicePermission</code> with the specified <code>servicePrincipal</code> * and <code>action</code>. * * @param servicePrincipal the name of the service principal. An asterisk may appear by itself, to * signify any service principal. * <p> * @param action the action string */ public ServicePermission(String servicePrincipal, String action) { super(servicePrincipal); init(servicePrincipal, getMask(action)); }