public String getAuthenticationHeader ( String databaseName ) { String header ; // Default to Basic. if ( databaseName != null ) header = "WWW-Authenticate: Basic realm=\"OrientDB db-" + databaseName + "\"" ; else header = "WWW-Authenticate: Basic realm=\"OrientDB Server\"" ; return header ; }
databaseName may be null .