public class AuthInfo extends Object implements Serializable
A collection of authorization information.
| Constructor and Description |
|---|
AuthInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getActionType()
The type of action for which the principal is being authorized.
|
List<String> |
getResources()
The resources for which the principal is being authorized to perform the
specified action.
|
int |
hashCode() |
void |
setActionType(ActionType actionType)
The type of action for which the principal is being authorized.
|
void |
setActionType(String actionType)
The type of action for which the principal is being authorized.
|
void |
setResources(Collection<String> resources)
The resources for which the principal is being authorized to perform the
specified action.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthInfo |
withActionType(ActionType actionType)
The type of action for which the principal is being authorized.
|
AuthInfo |
withActionType(String actionType)
The type of action for which the principal is being authorized.
|
AuthInfo |
withResources(Collection<String> resources)
The resources for which the principal is being authorized to perform the
specified action.
|
AuthInfo |
withResources(String... resources)
The resources for which the principal is being authorized to perform the
specified action.
|
public String getActionType()
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
The type of action for which the principal is being authorized.
ActionTypepublic void setActionType(String actionType)
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic AuthInfo withActionType(String actionType)
The type of action for which the principal is being authorized.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic void setActionType(ActionType actionType)
The type of action for which the principal is being authorized.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic AuthInfo withActionType(ActionType actionType)
The type of action for which the principal is being authorized.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
actionType - The type of action for which the principal is being authorized.
ActionTypepublic List<String> getResources()
The resources for which the principal is being authorized to perform the specified action.
The resources for which the principal is being authorized to perform the specified action.
public void setResources(Collection<String> resources)
The resources for which the principal is being authorized to perform the specified action.
resources - The resources for which the principal is being authorized to perform the specified action.
public AuthInfo withResources(String... resources)
The resources for which the principal is being authorized to perform the specified action.
Returns a reference to this object so that method calls can be chained together.
resources - The resources for which the principal is being authorized to perform the specified action.
public AuthInfo withResources(Collection<String> resources)
The resources for which the principal is being authorized to perform the specified action.
Returns a reference to this object so that method calls can be chained together.
resources - The resources for which the principal is being authorized to perform the specified action.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.