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

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default String getCurrentUserName()
      If the security domain is not null the current user is returned.
      default org.wildfly.security.auth.server.SecurityIdentity getIdentity()
      If the security domain is not null the current identity is returned.
      org.wildfly.security.auth.server.SecurityDomain getSecurityDomain()
      Returns the security domain if defined or null if not defined.
      • Methods inherited from interface org.jberet.spi.BatchEnvironment

        getApplicationName, getArtifactFactory, getBatchConfigurationProperties, getClassLoader, getJobRepository, getJobXmlResolver, getTransactionManager, submitTask
    • Method Detail

      • getSecurityDomain

        org.wildfly.security.auth.server.SecurityDomain getSecurityDomain()
        Returns the security domain if defined or null if not defined.
        Returns:
        the security domain or null if not defined
      • getCurrentUserName

        default String getCurrentUserName()
        If the security domain is not null the current user is returned. otherwise null is returned.

        Note that if the current identity is anonymous null will be returned.

        Returns:
        the current user name or null
      • getIdentity

        default org.wildfly.security.auth.server.SecurityIdentity getIdentity()
        If the security domain is not null the current identity is returned. otherwise null is returned.
        Returns:
        the current identity or null