Class SecurityConfHandler.SecurityConfig

  • Enclosing class:
    SecurityConfHandler

    public static class SecurityConfHandler.SecurityConfig
    extends Object
    Object to hold security.json as nested Map<String,Object> and optionally its version. The version property is optional and defaults to -1 if not initialized. The data object defaults to EMPTY_MAP if not set
    • Constructor Detail

      • SecurityConfig

        public SecurityConfig()
    • Method Detail

      • setData

        public SecurityConfHandler.SecurityConfig setData​(Object data)
        Sets the data as an Object, but the object needs to be of type Map
        Parameters:
        data - an Object of type Map<String,Object>
        Returns:
        SecurityConf object (builder pattern)
      • setVersion

        public SecurityConfHandler.SecurityConfig setVersion​(int version)
        Sets version
        Parameters:
        version - integer for version. Depends on underlying storage
        Returns:
        SecurityConf object (builder pattern)
      • getVersion

        public int getVersion()
      • setData

        public SecurityConfHandler.SecurityConfig setData​(InputStream securityJsonInputStream)
        Set data from input stream
        Parameters:
        securityJsonInputStream - an input stream for security.json
        Returns:
        this (builder pattern)