@Typed(value=SamlSpBean.class) public class SamlSpBean extends SamlEntityBean implements SamlSpBeanApi, SamlMultiUserServiceProviderApi, SamlServiceProviderConfigurationApi
metaDataJaxbContexthostName, port, protocol| Constructor and Description |
|---|
SamlSpBean() |
| Modifier and Type | Method and Description |
|---|---|
SamlExternalIdentityProvider |
addExternalIdentityProvider(String entityId,
IDPSSODescriptorType idpSsoDescriptor) |
SamlExternalIdentityProvider |
addExternalSamlEntity(Reader reader)
This method can be used to add an external SAML entity that is trusted by
the entity that is being configured.
|
List<SamlExternalEntity> |
getExternalSamlEntities()
Gets a list of all external entities that have been added previously by
calling
SamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader). |
SamlExternalIdentityProvider |
getExternalSamlEntityByEntityId(String entityId)
Gets the detailed of a trusted external entity, that has been added
previously by calling
SamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader). |
List<SamlExternalIdentityProvider> |
getIdentityProviders()
Returns a list with all identity providers that are trusted (i.e.
|
SamlIdpOrSp |
getIdpOrSp() |
Set<SamlSpSession> |
getSessions() |
void |
globalLogout(SamlSpSession session,
javax.servlet.http.HttpServletResponse response) |
boolean |
isAuthnRequestsSigned()
If this property is enabled, all authentication requests targeted at
identity providers will be signed.
|
boolean |
isWantAssertionsSigned()
This property, which is enabled by default, determines whether incoming
authentication responses from the identity provider are required to have a
valid signature.
|
void |
localLogout(SamlSpSession session) |
void |
login(String idpEntityId,
javax.servlet.http.HttpServletResponse response) |
void |
setAuthnRequestsSigned(boolean authnRequestsSigned)
|
void |
setWantAssertionsSigned(boolean wantAssertionsSigned)
|
void |
writeMetaData(Writer writer) |
addKeyDescriptorToMetaData, addNameIDFormatsToMetaData, addSloEndpointsToMetaData, getEntityId, getMetaDataURL, getMetaInfo, getPreferredBinding, getServiceURL, getSigningKey, isSingleLogoutMessagesSigned, isWantSingleLogoutMessagesSigned, readEntitiesDescriptor, readEntityDescriptor, setEntityId, setPreferredBinding, setSigningKey, setSingleLogoutMessagesSigned, setWantSingleLogoutMessagesSignedcreateURL, getHostName, getPort, getProtocol, setHostName, setPort, setProtocolclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSingleLogoutMessagesSigned, isWantSingleLogoutMessagesSigned, setSingleLogoutMessagesSigned, setWantSingleLogoutMessagesSignedgetEntityId, getMetaDataURL, getPreferredBinding, setEntityId, setPreferredBinding, setSigningKeygetHostName, getPort, getProtocol, setHostName, setPort, setProtocolpublic SamlExternalIdentityProvider addExternalIdentityProvider(String entityId, IDPSSODescriptorType idpSsoDescriptor)
public SamlExternalIdentityProvider addExternalSamlEntity(Reader reader)
SamlEntityConfigurationApiSamlEntityConfigurationApi.getMetaDataURL().addExternalSamlEntity in interface SamlEntityConfigurationApiaddExternalSamlEntity in class SamlEntityBeanreader - reader that reads the meta information of the entry that
needs to be addedpublic List<SamlExternalEntity> getExternalSamlEntities()
SamlEntityConfigurationApiSamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader).getExternalSamlEntities in interface SamlEntityConfigurationApigetExternalSamlEntities in class SamlEntityBeanpublic List<SamlExternalIdentityProvider> getIdentityProviders()
SamlServiceProviderConfigurationApiSamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader)). This allows the
API client to present the list to the user, so that the user can choose
the provider that needs to be used for doing the login.getIdentityProviders in interface SamlServiceProviderConfigurationApipublic boolean isAuthnRequestsSigned()
SamlServiceProviderConfigurationApiSamlEntityConfigurationApi.setSigningKey(String, String, String, String)
.isAuthnRequestsSigned in interface SamlServiceProviderConfigurationApipublic void setAuthnRequestsSigned(boolean authnRequestsSigned)
SamlServiceProviderConfigurationApisetAuthnRequestsSigned in interface SamlServiceProviderConfigurationApipublic boolean isWantAssertionsSigned()
SamlServiceProviderConfigurationApiisWantAssertionsSigned in interface SamlServiceProviderConfigurationApipublic void setWantAssertionsSigned(boolean wantAssertionsSigned)
SamlServiceProviderConfigurationApisetWantAssertionsSigned in interface SamlServiceProviderConfigurationApipublic SamlExternalIdentityProvider getExternalSamlEntityByEntityId(String entityId)
SamlEntityConfigurationApiSamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader).getExternalSamlEntityByEntityId in interface SamlEntityConfigurationApigetExternalSamlEntityByEntityId in class SamlEntityBeanentityId - the id of the entitypublic void writeMetaData(Writer writer)
writeMetaData in class SamlEntityBeanpublic void login(String idpEntityId, javax.servlet.http.HttpServletResponse response)
login in interface SamlMultiUserServiceProviderApipublic void localLogout(SamlSpSession session)
localLogout in interface SamlMultiUserServiceProviderApipublic void globalLogout(SamlSpSession session, javax.servlet.http.HttpServletResponse response)
globalLogout in interface SamlMultiUserServiceProviderApipublic Set<SamlSpSession> getSessions()
getSessions in interface SamlMultiUserServiceProviderApipublic SamlIdpOrSp getIdpOrSp()
getIdpOrSp in class SamlEntityBeanCopyright © 2013 Seam Framework. All Rights Reserved.