/** * Initialize the Shared Association and Private Association stores * * @param sharedAssociationStore a set of 2 association stores {@code ServerAssociationStore} * @throws {@code IllegalArgumentException} if the number of stores is not 2 */ public void initialize(ServerAssociationStore... sharedAssociationStore) { if (sharedAssociationStore == null || sharedAssociationStore.length == 0) { initialize(); return; } if (sharedAssociationStore.length != 2) throw new IllegalArgumentException("Number of association stores not equal to 2"); serverManager.setSharedAssociations(sharedAssociationStore[0]); serverManager.setPrivateAssociations(sharedAssociationStore[1]); }