In allusion to Java technology being used extensively, especially the electronic commerce development based on J2EE platform. Introduce one identit y authentication technology under Java2, JAAS(Java Authentication Authorization Service). For identity authentication and authorization are related to security mechanism, will expatiate on the Java security especially the access control at the same time.