Interface SecurityAwareBatchEnvironment
-
- All Superinterfaces:
org.jberet.spi.BatchEnvironment
public interface SecurityAwareBatchEnvironment extends org.jberet.spi.BatchEnvironmentA batch environment which can provide various security options.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetCurrentUserName()If the security domain is notnullthe current user is returned.default org.wildfly.security.auth.server.SecurityIdentitygetIdentity()If the security domain is notnullthe current identity is returned.org.wildfly.security.auth.server.SecurityDomaingetSecurityDomain()Returns the security domain if defined ornullif not defined.
-
-
-
Method Detail
-
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
default String 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
-
-