Package uk.gov.ida.saml.hub.api
Class HubTransformersFactory
- java.lang.Object
-
- uk.gov.ida.saml.hub.api.HubTransformersFactory
-
public class HubTransformersFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HubTransformersFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionFromIdpToAssertionTransformergetAssertionFromIdpToAssertionTransformer()PassthroughAssertionUnmarshallergetAssertionToPassthroughAssertionTransformer()AuthnRequestToIdaRequestFromRelyingPartyTransformergetAuthnRequestToAuthnRequestFromTransactionTransformer(java.net.URI expectedDestinationHost, uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore decryptionKeyStore, IdExpirationCache duplicateIds, SamlDuplicateRequestValidationConfiguration samlDuplicateRequestValidationConfiguration, SamlAuthnRequestValidityDurationConfiguration samlAuthnRequestValidityDurationConfiguration)RequestAbstractTypeToStringTransformer<org.opensaml.saml.saml2.core.AuthnRequest>getAuthnRequestToStringTransformer(boolean includeKeyInfo, uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)DecoratedSamlResponseToIdaResponseIssuedByIdpTransformergetDecoratedSamlResponseToIdaResponseIssuedByIdpTransformer(uk.gov.ida.saml.security.SignatureValidator idpSignatureValidator, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.net.URI expectedDestinationHost, java.lang.String expectedEndpoint, IdExpirationCache<java.lang.String> assertionIdCache, java.lang.String hubEntityId)EncryptedAssertionUnmarshallergetEncryptedAssertionUnmarshaller()java.util.function.Function<HubIdentityProviderMetadataDto,org.w3c.dom.Element>getHubIdentityProviderMetadataDtoToElementTransformer()java.util.function.Function<uk.gov.ida.saml.hub.domain.IdaAuthnRequestFromHub,java.lang.String>getIdaAuthnRequestFromHubToStringTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)java.util.function.Function<MatchingServiceHealthCheckRequest,org.w3c.dom.Element>getMatchingServiceHealthCheckRequestToElementTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entity, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm, java.lang.String hubEntityId)java.util.function.Function<HubAttributeQueryRequest,org.w3c.dom.Element>getMatchingServiceRequestToElementTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entity, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm, java.lang.String hubEntityId)java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String>getOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String>getOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keystore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, uk.gov.ida.saml.core.transformers.outbound.decorators.ResponseAssertionSigner responseAssertionSigner, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)<T extends org.opensaml.saml.saml2.core.RequestAbstractType>
RequestAbstractTypeToStringTransformer<T>getRequestAbstractTypeToStringTransformer(boolean includeKeyInfo, uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)DecoratedSamlResponseToInboundHealthCheckResponseFromMatchingServiceTransformergetResponseInboundHealthCheckResponseFromMatchingServiceTransformer(uk.gov.ida.saml.security.SigningKeyStore signingKeyStore)DecoratedSamlResponseToInboundResponseFromMatchingServiceTransformergetResponseToInboundResponseFromMatchingServiceTransformer(uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.lang.String hubEntityId)java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String>getSamlProfileOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keystore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, uk.gov.ida.saml.core.transformers.outbound.decorators.ResponseAssertionSigner responseAssertionSigner, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Assertion>getStringToAssertionTransformer()uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.AuthnRequest>getStringToAuthnRequestTransformer()java.util.function.Function<java.lang.String,AuthnRequestFromRelyingParty>getStringToIdaAuthnRequestTransformer(java.net.URI expectedDestinationHost, uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore decryptionKeyStore, IdExpirationCache duplicateIds, SamlDuplicateRequestValidationConfiguration samlDuplicateRequestValidationConfiguration, SamlAuthnRequestValidityDurationConfiguration samlAuthnRequestValidityDurationConfiguration)java.util.function.Function<java.lang.String,InboundResponseFromIdp>getStringToIdaResponseIssuedByIdpTransformer(uk.gov.ida.saml.security.SignatureValidator idpSignatureValidator, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.net.URI expectedDestinationHost, java.lang.String expectedEndpoint, IdExpirationCache<java.lang.String> assertionIdCache, java.lang.String hubEntityId)uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Response>getStringToResponseTransformer()uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Response>getStringToResponseTransformer(ResponseSizeValidator validator)
-
-
-
Method Detail
-
getOutboundResponseFromHubToStringTransformer
public java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String> getOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getOutboundResponseFromHubToStringTransformer
public java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String> getOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keystore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, uk.gov.ida.saml.core.transformers.outbound.decorators.ResponseAssertionSigner responseAssertionSigner, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getSamlProfileOutboundResponseFromHubToStringTransformer
public java.util.function.Function<uk.gov.ida.saml.core.domain.OutboundResponseFromHub,java.lang.String> getSamlProfileOutboundResponseFromHubToStringTransformer(uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.IdaKeyStore keystore, uk.gov.ida.saml.security.EntityToEncryptForLocator entityToEncryptForLocator, uk.gov.ida.saml.core.transformers.outbound.decorators.ResponseAssertionSigner responseAssertionSigner, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getHubIdentityProviderMetadataDtoToElementTransformer
public java.util.function.Function<HubIdentityProviderMetadataDto,org.w3c.dom.Element> getHubIdentityProviderMetadataDtoToElementTransformer()
-
getIdaAuthnRequestFromHubToStringTransformer
public java.util.function.Function<uk.gov.ida.saml.hub.domain.IdaAuthnRequestFromHub,java.lang.String> getIdaAuthnRequestFromHubToStringTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getStringToIdaAuthnRequestTransformer
public java.util.function.Function<java.lang.String,AuthnRequestFromRelyingParty> getStringToIdaAuthnRequestTransformer(java.net.URI expectedDestinationHost, uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore decryptionKeyStore, IdExpirationCache duplicateIds, SamlDuplicateRequestValidationConfiguration samlDuplicateRequestValidationConfiguration, SamlAuthnRequestValidityDurationConfiguration samlAuthnRequestValidityDurationConfiguration)
-
getStringToAuthnRequestTransformer
public uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.AuthnRequest> getStringToAuthnRequestTransformer()
-
getStringToResponseTransformer
public uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Response> getStringToResponseTransformer()
-
getStringToResponseTransformer
public uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Response> getStringToResponseTransformer(ResponseSizeValidator validator)
-
getStringToAssertionTransformer
public uk.gov.ida.saml.deserializers.StringToOpenSamlObjectTransformer<org.opensaml.saml.saml2.core.Assertion> getStringToAssertionTransformer()
-
getAssertionToPassthroughAssertionTransformer
public PassthroughAssertionUnmarshaller getAssertionToPassthroughAssertionTransformer()
-
getAssertionFromIdpToAssertionTransformer
public AssertionFromIdpToAssertionTransformer getAssertionFromIdpToAssertionTransformer()
-
getMatchingServiceRequestToElementTransformer
public java.util.function.Function<HubAttributeQueryRequest,org.w3c.dom.Element> getMatchingServiceRequestToElementTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entity, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm, java.lang.String hubEntityId)
-
getMatchingServiceHealthCheckRequestToElementTransformer
public java.util.function.Function<MatchingServiceHealthCheckRequest,org.w3c.dom.Element> getMatchingServiceHealthCheckRequestToElementTransformer(uk.gov.ida.saml.security.IdaKeyStore keyStore, uk.gov.ida.saml.security.EncryptionKeyStore encryptionKeyStore, uk.gov.ida.saml.security.EntityToEncryptForLocator entity, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm, java.lang.String hubEntityId)
-
getRequestAbstractTypeToStringTransformer
public <T extends org.opensaml.saml.saml2.core.RequestAbstractType> RequestAbstractTypeToStringTransformer<T> getRequestAbstractTypeToStringTransformer(boolean includeKeyInfo, uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getAuthnRequestToStringTransformer
public RequestAbstractTypeToStringTransformer<org.opensaml.saml.saml2.core.AuthnRequest> getAuthnRequestToStringTransformer(boolean includeKeyInfo, uk.gov.ida.saml.security.IdaKeyStore keyStore, org.opensaml.xmlsec.algorithm.SignatureAlgorithm signatureAlgorithm, org.opensaml.xmlsec.algorithm.DigestAlgorithm digestAlgorithm)
-
getResponseToInboundResponseFromMatchingServiceTransformer
public DecoratedSamlResponseToInboundResponseFromMatchingServiceTransformer getResponseToInboundResponseFromMatchingServiceTransformer(uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.lang.String hubEntityId)
-
getStringToIdaResponseIssuedByIdpTransformer
public java.util.function.Function<java.lang.String,InboundResponseFromIdp> getStringToIdaResponseIssuedByIdpTransformer(uk.gov.ida.saml.security.SignatureValidator idpSignatureValidator, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.net.URI expectedDestinationHost, java.lang.String expectedEndpoint, IdExpirationCache<java.lang.String> assertionIdCache, java.lang.String hubEntityId)
-
getDecoratedSamlResponseToIdaResponseIssuedByIdpTransformer
public DecoratedSamlResponseToIdaResponseIssuedByIdpTransformer getDecoratedSamlResponseToIdaResponseIssuedByIdpTransformer(uk.gov.ida.saml.security.SignatureValidator idpSignatureValidator, uk.gov.ida.saml.security.IdaKeyStore keyStore, java.net.URI expectedDestinationHost, java.lang.String expectedEndpoint, IdExpirationCache<java.lang.String> assertionIdCache, java.lang.String hubEntityId)
-
getAuthnRequestToAuthnRequestFromTransactionTransformer
public AuthnRequestToIdaRequestFromRelyingPartyTransformer getAuthnRequestToAuthnRequestFromTransactionTransformer(java.net.URI expectedDestinationHost, uk.gov.ida.saml.security.SigningKeyStore signingKeyStore, uk.gov.ida.saml.security.IdaKeyStore decryptionKeyStore, IdExpirationCache duplicateIds, SamlDuplicateRequestValidationConfiguration samlDuplicateRequestValidationConfiguration, SamlAuthnRequestValidityDurationConfiguration samlAuthnRequestValidityDurationConfiguration)
-
getEncryptedAssertionUnmarshaller
public EncryptedAssertionUnmarshaller getEncryptedAssertionUnmarshaller()
-
getResponseInboundHealthCheckResponseFromMatchingServiceTransformer
public DecoratedSamlResponseToInboundHealthCheckResponseFromMatchingServiceTransformer getResponseInboundHealthCheckResponseFromMatchingServiceTransformer(uk.gov.ida.saml.security.SigningKeyStore signingKeyStore)
-
-