Class SecurityConfiguration


  • public class SecurityConfiguration
    extends com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.SecurityConfig>
    Class is intended to be used to read JEAF configuration data. This configuration data is located under META-INF/JEAF in the applications classpath and will be generated by JEAF's Maven Plugin during build time.
    Version:
    JEAF Release 1.3.1
    Author:
    JEAF Development Team
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_CONFIGURATION_CLASS
      Name of the class that contains the default configuration annotation.
      • Fields inherited from class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration

        customConfig, defaultConfig, exceptionOnError, isCustomConfigAvailable, isDefaultConfigAvailable, theConfig
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> checkCustomConfiguration​(com.anaptecs.jeaf.core.annotations.SecurityConfig pCustomConfiguration)  
      protected java.lang.Class<com.anaptecs.jeaf.core.annotations.SecurityConfig> getAnnotationClass()  
      protected java.lang.String getDefaultConfigurationClass()  
      com.anaptecs.jeaf.core.annotations.SecurityConfig getEmptyConfiguration()  
      java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.api.Service>> getExportedServices()
      Property defines which services are accessible for external calls.
      static SecurityConfiguration getInstance()
      Method returns JEAF configuration
      com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor getSecurityInterceptor()
      Property the implementation that should be used to ensure JEAF security.
      boolean isJEAFSecurityEnabled()
      Property defines if JEAF security should be used or not.
      boolean restrictAccessToExportedServices()
      Property defines if only service can be called from outside the JVM that are explicitly exported through this configuration.
      • Methods inherited from class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration

        asList, asList, asList, asList, asList, asList, asList, asList, getConfigurationClass, getConfigurationErrors, isCustomConfigurationAvailable, isDefaultConfigurationAvailable, newInstance, newInstance, newInstances, tryNewInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_CONFIGURATION_CLASS

        public static final java.lang.String DEFAULT_CONFIGURATION_CLASS
        Name of the class that contains the default configuration annotation.
        See Also:
        Constant Field Values
    • Method Detail

      • getAnnotationClass

        protected java.lang.Class<com.anaptecs.jeaf.core.annotations.SecurityConfig> getAnnotationClass()
        Specified by:
        getAnnotationClass in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.SecurityConfig>
      • getDefaultConfigurationClass

        protected java.lang.String getDefaultConfigurationClass()
        Specified by:
        getDefaultConfigurationClass in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.SecurityConfig>
      • getEmptyConfiguration

        public com.anaptecs.jeaf.core.annotations.SecurityConfig getEmptyConfiguration()
        Specified by:
        getEmptyConfiguration in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.SecurityConfig>
      • checkCustomConfiguration

        public java.util.List<java.lang.String> checkCustomConfiguration​(com.anaptecs.jeaf.core.annotations.SecurityConfig pCustomConfiguration)
        Specified by:
        checkCustomConfiguration in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.SecurityConfig>
      • restrictAccessToExportedServices

        public boolean restrictAccessToExportedServices()
        Property defines if only service can be called from outside the JVM that are explicitly exported through this configuration. By default services have to be exported to be accessible for external calls #exportedServices()
      • getExportedServices

        public java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.api.Service>> getExportedServices()
        Property defines which services are accessible for external calls. This configuration has only impact if restrictAccessToExportedServices is set to true. PrincipalProvider
      • isJEAFSecurityEnabled

        public boolean isJEAFSecurityEnabled()
        Property defines if JEAF security should be used or not. By default it is enabled. PrincipalProvider
      • getSecurityInterceptor

        public com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor getSecurityInterceptor()
        Property the implementation that should be used to ensure JEAF security. ServiceChannelInterceptor