private void configureAuthentication ( String username , String password , String realm ) { // If the username is set, set up authentication: if ( StringUtils . isNotBlank ( username ) ) { this . username = username ; this . password = password ; this . realm = StringUtils . defaultIfBlank ( realm , "restolino" ) ; authenticationEnabled = true ; } }
Sets up authentication .