1. A method for managing security material in a database system comprising at least one first database, at least one second database, and at least one third database, which method comprises steps, wherein: said first database stores security material to be used in the database system, said security material is distributed from said first database to said third database, and said third database uses said security material to do one of the following: to authenticate at least one application program and to authorize said at least one application program to access said second database in the database system.