SamlConfig { public Map<String, SamlKey> getKeys() { return Collections.unmodifiableMap(keys); }  boolean isAssertionSigned(); void setAssertionSigned(boolean assertionSigned); @JsonInclude(JsonInclude.Include.NON_NULL) String getEntityID(); @JsonInclude(JsonInclude.Include.NON_NULL) void setEntityID(String entityID); boolean isRequestSigned(); void setRequestSigned(boolean requestSigned); boolean isWantAssertionSigned(); void setWantAssertionSigned(boolean wantAssertionSigned); @JsonProperty("certificate") void setCertificate(String certificate); @JsonProperty("privateKey") void setPrivateKey(String privateKey); @JsonProperty("privateKeyPassword") void setPrivateKeyPassword(String privateKeyPassword); boolean isWantAuthnRequestSigned(); void setWantAuthnRequestSigned(boolean wantAuthnRequestSigned); int getAssertionTimeToLiveSeconds(); void setAssertionTimeToLiveSeconds(int assertionTimeToLiveSeconds); @JsonProperty("certificate") String getCertificate(); @JsonProperty String getPrivateKey(); @JsonProperty String getPrivateKeyPassword(); String getActiveKeyId(); void setActiveKeyId(String activeKeyId); Map<String, SamlKey> getKeys(); void setKeys(Map<String, SamlKey> keys); @JsonIgnore void addAndActivateKey(String keyId, SamlKey key); @JsonIgnore void addKey(String keyId, SamlKey key); @JsonIgnore SamlKey removeKey(String keyId); boolean isDisableInResponseToCheck(); void setDisableInResponseToCheck(boolean disableInResponseToCheck); static final String LEGACY_KEY_ID; }
@Test public void keys_are_not_modifiable() { read_json(oldJson); exception.expect(UnsupportedOperationException.class); config.getKeys().clear(); }