Class WhoAmIOperation
- java.lang.Object
-
- org.jboss.as.domain.management.security.WhoAmIOperation
-
- All Implemented Interfaces:
OperationStepHandler
public class WhoAmIOperation extends Object implements OperationStepHandler
The OperationStepHandler for the whoami operation. The whoami operation allows for clients to request information about the currently authenticated user from the server, in it's short form this will just return the username but in the verbose form this will also reveal the roles. This operation is needed as there are various scenarios where the client is not directly involved in the authentication process from the admin console leaving the web browser to authenticate to the more silent mechanisms such as Kerberos and JBoss Local User.- Author:
- Darran Lofthouse
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleOperationDefinitionDEFINITION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperationStepHandlercreateOperation(Authorizer authorizer)voidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)
-
-
-
Field Detail
-
DEFINITION
public static final SimpleOperationDefinition DEFINITION
-
-
Method Detail
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executein interfaceOperationStepHandler- Throws:
OperationFailedException- See Also:
OperationStepHandler.execute(org.jboss.as.controller.OperationContext, org.jboss.dmr.ModelNode)
-
createOperation
public static OperationStepHandler createOperation(Authorizer authorizer)
-
-