org.wildfly.extras.creaper.commands.auth
Class PropertiesFileAuth.UserMappings

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.auth.PropertiesFileAuth.UserMappings
Enclosing class:
PropertiesFileAuth

public static final class PropertiesFileAuth.UserMappings
extends Object

Convenience view on PropertiesFileAuth that only exposes methods for working with user mappings.


Method Summary
 OfflineCommand defineUserMapping(String username, String roleOrGroup)
          Ensures that the *-<groups|roles>.properties file contains a mapping of a user with given username to given role/group (roleOrGroup).
 OfflineCommand undefineUserMapping(String username, String roleOrGroup)
          Ensures that the *-<groups|roles>.properties file doesn't contain a mapping of a user with given username to given role/group (roleOrGroup).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

defineUserMapping

public OfflineCommand defineUserMapping(String username,
                                        String roleOrGroup)
Ensures that the *-<groups|roles>.properties file contains a mapping of a user with given username to given role/group (roleOrGroup).


undefineUserMapping

public OfflineCommand undefineUserMapping(String username,
                                          String roleOrGroup)
Ensures that the *-<groups|roles>.properties file doesn't contain a mapping of a user with given username to given role/group (roleOrGroup).



Copyright © 2020. All rights reserved.