Class MockAccessControl

  • All Implemented Interfaces:
    java.io.Serializable

    public class MockAccessControl
    extends java.lang.Object
    implements java.io.Serializable
    Mock access control.
    Author:
    Daniel Sagenschneider
    See Also:
    Serialized Form
    • Constructor Detail

      • MockAccessControl

        public MockAccessControl​(java.lang.String userName,
                                 java.lang.String... roles)
        Instantiate.
        Parameters:
        userName - User name.
        roles - Roles.
    • Method Detail

      • getAuthenticationScheme

        public java.lang.String getAuthenticationScheme()
        Obtains the authentication scheme.
        Returns:
        Authentication scheme.
      • getUserName

        public java.lang.String getUserName()
        Obtains the user name.
        Returns:
        User name.
      • getRoles

        public java.util.Set<java.lang.String> getRoles()
        Obtains the roles.
        Returns:
        Roles.