public boolean isAdministrator ( AuthContext ctx ) { return ctx . getUsername ( ) != null && ctx . getUsername ( ) . equals ( adminName ) && ctx . getPassword ( ) != null && ctx . getPassword ( ) . equals ( adminPass ) ; }
Check if the given credentials allow administrative access