public static SecurityManager createSecurityManager ( SystemMail systemMail , Main main ) throws IllegalAccessException { if ( ! exists ) { SecurityManager securityManager = new SecurityManager ( systemMail , main ) ; exists = true ; return securityManager ; } throw new IllegalAccessException ( "Cannot create more than one instance of IzouSecurityManager" ) ; }
Creates a SecurityManager . There can only be one single SecurityManager so calling this method twice will cause an illegal access exception .