api / org.gradle.plugins.ear.descriptor / DeploymentDescriptor / securityRole

securityRole

abstract fun securityRole(role: EarSecurityRole): DeploymentDescriptor

Add a security role to the deployment descriptor.

Parameters

role - The security role to add.

Return
this.

abstract fun securityRole(role: String): DeploymentDescriptor

Add a security role to the deployment descriptor.

Parameters

role - The name of the security role to add.

Return
this.

abstract fun securityRole(action: Action<in EarSecurityRole>): DeploymentDescriptor

Add a security role to the deployment descriptor after configuring it with the given action.

Parameters

action - an action to configure the security role

Return
this.