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 Constructor Description DefaultSingleSignOnService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAssertionConsumerServiceUrl()Returns URI where the IdP should send the responses to.SamlDeployment.BindinggetRequestBinding()StringgetRequestBindingUrl()Returns URL for the IDP login service that the client will send requests to.SamlDeployment.BindinggetResponseBinding()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)booleansignRequest()Returnstrueif the requests to IdP need to be signed by SP key.booleanvalidateAssertionSignature()Returnstrueif individual assertions in response from IdP should be checked for valid signature.booleanvalidateResponseSignature()Returnstrueif the complete response message from IdP should be checked for valid signature.
-
-
-
Method Detail
-
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
public SamlDeployment.Binding getRequestBinding()
- Specified by:
getRequestBindingin interfaceSamlDeployment.IDP.SingleSignOnService
-
getResponseBinding
public SamlDeployment.Binding 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
public String 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
public URI 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
public void setAssertionConsumerServiceUrl(URI assertionConsumerServiceUrl)
-
setSignRequest
public void setSignRequest(boolean signRequest)
-
setValidateResponseSignature
public void setValidateResponseSignature(boolean validateResponseSignature)
-
setValidateAssertionSignature
public void setValidateAssertionSignature(boolean validateAssertionSignature)
-
setRequestBinding
public void setRequestBinding(SamlDeployment.Binding requestBinding)
-
setResponseBinding
public void setResponseBinding(SamlDeployment.Binding responseBinding)
-
setRequestBindingUrl
public void setRequestBindingUrl(String requestBindingUrl)
-
-