org.hibernate.validator.valuehandling.UnwrapValidatedValue Java Examples

The following examples show how to use org.hibernate.validator.valuehandling.UnwrapValidatedValue. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VerifyServiceProviderConfiguration.java    From verify-service-provider with MIT License 6 votes vote down vote up
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()));
}