Class AbstractServiceProviderFilter
java.lang.Object
org.apache.cxf.rs.security.saml.sso.AbstractSSOSpHandler
org.apache.cxf.rs.security.saml.sso.AbstractServiceProviderFilter
- All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter
- Direct Known Subclasses:
SamlPostBindingFilter,SamlRedirectBindingFilter
@PreMatching
@Priority(1001)
public abstract class AbstractServiceProviderFilter
extends AbstractSSOSpHandler
implements jakarta.ws.rs.container.ContainerRequestFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ResourceBundleprotected static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckSecurityContext(org.apache.cxf.message.Message m) voidclose()protected SamlRequestInfocreateSamlRequestInfo(org.apache.cxf.message.Message m) protected abstract StringencodeAuthnRequest(Element authnRequest) protected ResponseStategetValidResponseState(jakarta.ws.rs.core.Cookie securityContextCookie, org.apache.cxf.message.Message m) booleanprotected booleanisStateExpired(long stateCreatedAt, long expiresAt) protected voidreportError(String code) protected voidreportTrace(String code) voidsetAddEndpointAddressToContext(boolean add) voidsetAddWebAppContext(boolean addWebAppContext) voidsetAssertionConsumerServiceAddress(String assertionConsumerServiceAddress) voidsetAuthnRequestBuilder(AuthnRequestBuilder authnRequestBuilder) protected voidsetSecurityContext(org.apache.cxf.message.Message m, org.apache.wss4j.common.saml.SamlAssertionWrapper assertionWrapper) voidsetSignatureAlgorithm(String signatureAlgorithm) voidsetSignRequest(boolean signRequest) voidsetWebAppDomain(String webAppDomain) protected abstract voidsignAuthnRequest(org.opensaml.saml.saml2.core.AuthnRequest authnRequest) Methods inherited from class org.apache.cxf.rs.security.saml.sso.AbstractSSOSpHandler
createCookie, getCallbackHandler, getIdpServiceAddress, getIssuerId, getSignatureCrypto, getSignatureUsername, getStateProvider, getStateTimeToLive, isSupportUnsolicited, setCallbackHandler, setCallbackHandlerClass, setIdpServiceAddress, setIssuerId, setSignatureCrypto, setSignaturePropertiesFile, setSignatureUsername, setStateProvider, setStateTimeToLive, setSupportUnsolicitedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.container.ContainerRequestFilter
filter
-
Field Details
-
LOG
-
BUNDLE
-
-
Constructor Details
-
AbstractServiceProviderFilter
public AbstractServiceProviderFilter()
-
-
Method Details
-
setAddEndpointAddressToContext
public void setAddEndpointAddressToContext(boolean add) -
setSignRequest
public void setSignRequest(boolean signRequest) -
isSignRequest
public boolean isSignRequest() -
setAuthnRequestBuilder
-
setAssertionConsumerServiceAddress
-
close
@PreDestroy public void close()- Overrides:
closein classAbstractSSOSpHandler
-
checkSecurityContext
protected boolean checkSecurityContext(org.apache.cxf.message.Message m) -
setSecurityContext
protected void setSecurityContext(org.apache.cxf.message.Message m, org.apache.wss4j.common.saml.SamlAssertionWrapper assertionWrapper) -
getValidResponseState
protected ResponseState getValidResponseState(jakarta.ws.rs.core.Cookie securityContextCookie, org.apache.cxf.message.Message m) -
isStateExpired
protected boolean isStateExpired(long stateCreatedAt, long expiresAt) -
createSamlRequestInfo
- Throws:
Exception
-
encodeAuthnRequest
- Throws:
IOException
-
signAuthnRequest
protected abstract void signAuthnRequest(org.opensaml.saml.saml2.core.AuthnRequest authnRequest) throws Exception - Throws:
Exception
-
reportError
-
reportTrace
-
getWebAppDomain
-
setWebAppDomain
-
setAddWebAppContext
public void setAddWebAppContext(boolean addWebAppContext) -
getSignatureAlgorithm
-
setSignatureAlgorithm
-