Package org.jboss.remoting3.security
Class RemotingPermission
- java.lang.Object
-
- java.security.Permission
-
- org.wildfly.security.permission.AbstractPermission<This>
-
- org.wildfly.security.permission.AbstractNamedPermission<This>
-
- org.wildfly.security.permission.AbstractNameOnlyPermission<This>
-
- org.wildfly.security.permission.AbstractNameSetOnlyPermission<RemotingPermission>
-
- org.jboss.remoting3.security.RemotingPermission
-
- All Implemented Interfaces:
Serializable
,Guard
,org.wildfly.security.permission.PermissionVerifier
public class RemotingPermission extends org.wildfly.security.permission.AbstractNameSetOnlyPermission<RemotingPermission>
This class is for permissions relating to Remoting endpoints.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RemotingPermission
ADD_CONNECTION_PROVIDER
static RemotingPermission
ALL_PERMISSION
static RemotingPermission
CONNECT
static RemotingPermission
CREATE_ENDPOINT
static RemotingPermission
GET_CONNECTION_PEER_IDENTITY
static RemotingPermission
GET_CONNECTION_PROVIDER_INTERFACE
static RemotingPermission
REGISTER_SERVICE
-
Constructor Summary
Constructors Constructor Description RemotingPermission(String name)
Creates a newRemotingPermission
object with the specified name.RemotingPermission(String name, String actions)
Creates a newRemotingPermission
object with the specified name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemotingPermission
forName(String name)
Get the permission with the given name.RemotingPermission
withName(String name)
Create a new permission which is identical to this one, except with a newname
.-
Methods inherited from class org.wildfly.security.permission.AbstractNameSetOnlyPermission
impliesName, nameEquals, nameHashCode, newPermissionCollection
-
Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEquals
-
Methods inherited from class org.wildfly.security.permission.AbstractPermission
equals, getActions, implies, requireEmptyActions
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
-
-
-
Field Detail
-
CREATE_ENDPOINT
public static final RemotingPermission CREATE_ENDPOINT
-
CONNECT
public static final RemotingPermission CONNECT
-
ADD_CONNECTION_PROVIDER
public static final RemotingPermission ADD_CONNECTION_PROVIDER
-
REGISTER_SERVICE
public static final RemotingPermission REGISTER_SERVICE
-
GET_CONNECTION_PROVIDER_INTERFACE
public static final RemotingPermission GET_CONNECTION_PROVIDER_INTERFACE
-
GET_CONNECTION_PEER_IDENTITY
public static final RemotingPermission GET_CONNECTION_PEER_IDENTITY
-
ALL_PERMISSION
public static final RemotingPermission ALL_PERMISSION
-
-
Constructor Detail
-
RemotingPermission
public RemotingPermission(String name) throws NullPointerException, IllegalArgumentException
Creates a newRemotingPermission
object with the specified name. The name is the symbolic name of theRemotingPermission
.- Parameters:
name
- the name of theRemotingPermission
- Throws:
NullPointerException
- ifname
isnull
IllegalArgumentException
- ifname
is empty
-
RemotingPermission
public RemotingPermission(String name, String actions) throws NullPointerException, IllegalArgumentException
Creates a newRemotingPermission
object with the specified name. The name is the symbolic name of theRemotingPermission
, and the actions string is currently unused.- Parameters:
name
- the name of theRemotingPermission
actions
- ignored- Throws:
NullPointerException
- ifname
isnull
IllegalArgumentException
- ifname
is empty
-
-
Method Detail
-
withName
public RemotingPermission withName(String name)
Create a new permission which is identical to this one, except with a newname
.- Specified by:
withName
in classorg.wildfly.security.permission.AbstractNamedPermission<RemotingPermission>
- Parameters:
name
- the name to use- Returns:
- the new permission (must not be
null
) - Throws:
IllegalArgumentException
- if the name is not valid
-
forName
public static RemotingPermission forName(String name)
Get the permission with the given name.- Parameters:
name
- the name (must not benull
)- Returns:
- the permission (not
null
) - Throws:
IllegalArgumentException
- if the name is not valid
-
-