Class JdbcAssertingPartyMetadataRepository.AssertingPartyMetadataRowMapper
java.lang.Object
org.springframework.security.saml2.provider.service.registration.JdbcAssertingPartyMetadataRepository.AssertingPartyMetadataRowMapper
- All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<AssertingPartyMetadata>
- Enclosing class:
- JdbcAssertingPartyMetadataRepository
public static final class JdbcAssertingPartyMetadataRepository.AssertingPartyMetadataRowMapper
extends Object
implements org.springframework.jdbc.core.RowMapper<AssertingPartyMetadata>
- Since:
- 7.0.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe default deserializer for verification and encryption credentials. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCredentialsDeserializer(org.springframework.core.serializer.Deserializer<Collection<Saml2X509Credential>> deserializer) Set theDeserializerto use for reading the credential collection from the database.
-
Constructor Details
-
AssertingPartyMetadataRowMapper
public AssertingPartyMetadataRowMapper()
-
-
Method Details
-
mapRow
- Specified by:
mapRowin interfaceorg.springframework.jdbc.core.RowMapper<AssertingPartyMetadata>- Throws:
SQLException
-
setCredentialsDeserializer
public void setCredentialsDeserializer(org.springframework.core.serializer.Deserializer<Collection<Saml2X509Credential>> deserializer) Set theDeserializerto use for reading the credential collection from the database. By default,JdbcAssertingPartyMetadataRepository.AssertingPartyMetadataRowMapper.Saml2X509CredentialCollectionDeserializeris used, which uses Java Object serialization.If a custom deserializer is used, it is the responsibility of the developer to ensure that any deserialization of credentials is done securely.
- Parameters:
deserializer- the deserializer to use
-