org.apache.cxf.rs.security.oauth2.grants.saml
Class Saml2BearerGrantHandler
java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
org.apache.cxf.rs.security.oauth2.grants.saml.Saml2BearerGrantHandler
- All Implemented Interfaces:
- org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler
public class Saml2BearerGrantHandler
- extends org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
The "SAML2 Bearer" grant handler
| Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler |
checkIfGrantSupported, doCreateAccessToken, getDataProvider, setDataProvider |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Saml2BearerGrantHandler
public Saml2BearerGrantHandler()
getSupportedGrantTypes
public List<String> getSupportedGrantTypes()
- Specified by:
getSupportedGrantTypes in interface org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler- Overrides:
getSupportedGrantTypes in class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
setSamlValidator
public void setSamlValidator(org.apache.ws.security.validate.Validator validator)
setSamlOAuthValidator
public void setSamlOAuthValidator(SamlOAuthValidator validator)
setSecurityContextProvider
public void setSecurityContextProvider(org.apache.cxf.rs.security.saml.authorization.SecurityContextProvider p)
createAccessToken
public org.apache.cxf.rs.security.oauth2.common.ServerAccessToken createAccessToken(org.apache.cxf.rs.security.oauth2.common.Client client,
javax.ws.rs.core.MultivaluedMap<String,String> params)
throws org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException
- Throws:
org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException
getGrantSubject
protected org.apache.cxf.rs.security.oauth2.common.UserSubject getGrantSubject(org.apache.cxf.message.Message message,
org.apache.ws.security.saml.ext.AssertionWrapper wrapper)
readToken
protected Element readToken(InputStream tokenStream)
validateToken
protected void validateToken(org.apache.cxf.message.Message message,
org.apache.ws.security.saml.ext.AssertionWrapper assertion)
setSecurityContext
protected void setSecurityContext(org.apache.cxf.message.Message message,
org.apache.ws.security.saml.ext.AssertionWrapper wrapper)
Apache CXF