Class STSInstanceConfig

  • Direct Known Subclasses:
    RestSTSInstanceConfig, SoapSTSInstanceConfig

    public class STSInstanceConfig
    extends Object
    Base class encapsulating STS configuration state common to both the REST and SOAP STS. A builder builds this base class, and is invoked by the builders in the REST/SOAP sublcasses. For an explanation of what's going on with the builders in this class and its subclasses, see https://weblogs.java.net/blog/emcmanus/archive/2010/10/25/using-builder-pattern-subclasses Also attempted to marshal the RestSTSInstanceConfig to/from json with the jackson ObjectMapper. But I was adding @JsonSerialize and @JsonDeserialize annotations, and because builder-based classes don't expose ctors which take the complete field set, I would have to create @JsonCreator instances which would have to pull all of the values out of a map anyway, which is 75% of the way towards a hand-rolled json marshalling implementation based on json-fluent. So a hand-rolled implementation it is. See toJson and fromJson methods.