Interface SecurityAwareBatchEnvironment
- All Superinterfaces:
org.jberet.spi.BatchEnvironment
public interface SecurityAwareBatchEnvironment
extends org.jberet.spi.BatchEnvironment
A batch environment which can provide various security options.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringIf the security domain is notnullthe current user is returned.default org.wildfly.security.auth.server.SecurityIdentityIf the security domain is notnullthe current identity is returned.org.wildfly.security.auth.server.SecurityDomainReturns the security domain if defined ornullif not defined.Methods inherited from interface org.jberet.spi.BatchEnvironment
getApplicationName, getArtifactFactory, getBatchConfigurationProperties, getClassLoader, getJobRepository, getJobXmlResolver, getTransactionManager, submitTask
-
Method Details
-
getSecurityDomain
org.wildfly.security.auth.server.SecurityDomain getSecurityDomain()Returns the security domain if defined ornullif not defined.- Returns:
- the security domain or
nullif not defined
-
getCurrentUserName
If the security domain is notnullthe current user is returned. otherwisenullis returned.Note that if the current identity is anonymous
nullwill be returned.- Returns:
- the current user name or
null
-
getIdentity
default org.wildfly.security.auth.server.SecurityIdentity getIdentity()- Returns:
- the current identity or
null
-