public Hashtable < String , String > getSecuritySpec ( String serviceRoleID , String methodName ) { if ( serviceRoleID == null || serviceRoleID . isEmpty ( ) ) { return getDefaultSecuritySpec ( ) ; } else if ( methodName == null || methodName . isEmpty ( ) ) { return rolePropertiesTable . get ( serviceRoleID ) ; } else { String roleKey = serviceRoleID + "/" + methodName ; // First see if there is already a role key at the method level Hashtable < String , String > properties = rolePropertiesTable . get ( roleKey ) ; // if we did not find security properties for the method level, // roll up to the parent service level and get properties. if ( properties == null ) { properties = rolePropertiesTable . get ( serviceRoleID ) ; } // if we did not find method or service-level properties, // roll up the the default level and get default properties. if ( properties == null ) { properties = getDefaultSecuritySpec ( ) ; } return properties ; } }
Get security properties for either the a backend service or a method within that backend service .