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