private void processSecurityRoleRefs ( String servletName , List < SecurityRoleRef > servletSecurityRoleRefs ) { Map < String , String > securityRoleRefs = new HashMap < String , String > ( ) ; securityRoleRefsByServlet . put ( servletName , securityRoleRefs ) ; for ( SecurityRoleRef secRoleRef : servletSecurityRoleRefs ) { if ( secRoleRef . getLink ( ) == null ) { Tr . warning ( tc , "MISSING_SEC_ROLE_REF_ROLE_LINK" , new Object [ ] { servletName , secRoleRef . getName ( ) } ) ; } else if ( allRoles . contains ( secRoleRef . getLink ( ) ) ) { securityRoleRefs . put ( secRoleRef . getName ( ) , secRoleRef . getLink ( ) ) ; } else { Tr . warning ( tc , "INVALID_SEC_ROLE_REF_ROLE_LINK" , new Object [ ] { servletName , secRoleRef . getLink ( ) , secRoleRef . getName ( ) } ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "securityRoleRefsByServlet: " + securityRoleRefsByServlet ) ; } }
Creates a map of security - role - ref elements to servlet name .