类org.hibernate.validator.valuehandling.UnwrapValidatedValue源码实例Demo

下面列出了怎么用org.hibernate.validator.valuehandling.UnwrapValidatedValue的API类实例代码及写法,或者点击链接到github查看源代码。

public VerifyServiceProviderConfiguration(
        @JsonProperty("serviceEntityIds") @NotNull @Size(min = 1, message = NOT_EMPTY_MESSAGE) @Valid List<String> serviceEntityIds,
        @JsonProperty("hashingEntityId") @Valid String hashingEntityId,
        @JsonProperty("verifyHubConfiguration") @NotNull @Valid VerifyHubConfiguration verifyHubConfiguration,
        @JsonProperty("samlSigningKey") @NotNull @Valid @JsonDeserialize(using = PrivateKeyDeserializer.class) PrivateKey samlSigningKey,
        @JsonProperty("samlPrimaryEncryptionKey") @NotNull @Valid @JsonDeserialize(using = PrivateKeyDeserializer.class) PrivateKey samlPrimaryEncryptionKey,
        @JsonProperty("samlSecondaryEncryptionKey") @Valid @JsonDeserialize(using = PrivateKeyDeserializer.class) PrivateKey samlSecondaryEncryptionKey,
        @JsonProperty("msaMetadata") @NotNull @UnwrapValidatedValue @Valid Optional<MsaMetadataConfiguration> msaMetadata,
        @JsonProperty("clockSkew") @NotNull @Valid Duration clockSkew,
        @JsonProperty("europeanIdentity") @Valid @UnwrapValidatedValue Optional<EuropeanIdentityConfiguration> europeanIdentity) {
    this.serviceEntityIds = serviceEntityIds;
    this.hashingEntityId = hashingEntityId;
    this.verifyHubConfiguration = verifyHubConfiguration;
    this.samlSigningKey = samlSigningKey;
    this.samlPrimaryEncryptionKey = samlPrimaryEncryptionKey;
    this.samlSecondaryEncryptionKey = samlSecondaryEncryptionKey;
    this.msaMetadata = msaMetadata;
    this.clockSkew = clockSkew;
    this.europeanIdentity = europeanIdentity;
    this.europeanIdentity.ifPresent(eid -> eid.setEnvironment(verifyHubConfiguration.getHubEnvironment()));
}
 
 类所在包
 同包方法