Package org.keycloak.adapters.saml
Class DefaultSamlDeployment.DefaultSingleSignOnService
java.lang.Object
org.keycloak.adapters.saml.DefaultSamlDeployment.DefaultSingleSignOnService
- All Implemented Interfaces:
SamlDeployment.IDP.SingleSignOnService
- Enclosing class:
- DefaultSamlDeployment
public static class DefaultSamlDeployment.DefaultSingleSignOnService
extends Object
implements SamlDeployment.IDP.SingleSignOnService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns URI where the IdP should send the responses to.Returns URL for the IDP login service that the client will send requests to.SAML allows the client to request what binding type it wants authn responses to use.voidsetAssertionConsumerServiceUrl(URI assertionConsumerServiceUrl) voidsetRequestBinding(SamlDeployment.Binding requestBinding) voidsetRequestBindingUrl(String requestBindingUrl) voidsetResponseBinding(SamlDeployment.Binding responseBinding) voidsetSignRequest(boolean signRequest) voidsetValidateAssertionSignature(boolean validateAssertionSignature) voidsetValidateResponseSignature(boolean validateResponseSignature) booleanReturnstrueif the requests to IdP need to be signed by SP key.booleanReturnstrueif individual assertions in response from IdP should be checked for valid signature.booleanReturnstrueif the complete response message from IdP should be checked for valid signature.
-
Constructor Details
-
DefaultSingleSignOnService
public DefaultSingleSignOnService()
-
-
Method Details
-
signRequest
public boolean signRequest()Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceReturnstrueif the requests to IdP need to be signed by SP key.- Specified by:
signRequestin interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
- see dscription
-
validateResponseSignature
public boolean validateResponseSignature()Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceReturnstrueif the complete response message from IdP should be checked for valid signature.- Specified by:
validateResponseSignaturein interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
- see dscription
-
validateAssertionSignature
public boolean validateAssertionSignature()Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceReturnstrueif individual assertions in response from IdP should be checked for valid signature.- Specified by:
validateAssertionSignaturein interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
- see dscription
-
getRequestBinding
- Specified by:
getRequestBindingin interfaceSamlDeployment.IDP.SingleSignOnService
-
getResponseBinding
Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceSAML allows the client to request what binding type it wants authn responses to use. The default is that the client will not request a specific binding type for responses.- Specified by:
getResponseBindingin interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
-
getRequestBindingUrl
Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceReturns URL for the IDP login service that the client will send requests to.- Specified by:
getRequestBindingUrlin interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
-
getAssertionConsumerServiceUrl
Description copied from interface:SamlDeployment.IDP.SingleSignOnServiceReturns URI where the IdP should send the responses to. The default is that the client will not request a specific assertion consumer service URL. This property is typically accompanied by the ProtocolBinding attribute.- Specified by:
getAssertionConsumerServiceUrlin interfaceSamlDeployment.IDP.SingleSignOnService- Returns:
-
setAssertionConsumerServiceUrl
-
setSignRequest
public void setSignRequest(boolean signRequest) -
setValidateResponseSignature
public void setValidateResponseSignature(boolean validateResponseSignature) -
setValidateAssertionSignature
public void setValidateAssertionSignature(boolean validateAssertionSignature) -
setRequestBinding
-
setResponseBinding
-
setRequestBindingUrl
-