public abstract class SamlEntityBean extends EntityBean implements SamlEntityConfigurationApi
| Modifier and Type | Field and Description |
|---|---|
protected JAXBContext |
metaDataJaxbContext |
hostName, port, protocol| Constructor and Description |
|---|
SamlEntityBean() |
| Modifier and Type | Method and Description |
|---|---|
abstract SamlExternalEntity |
addExternalSamlEntity(Reader reader)
This method can be used to add an external SAML entity that is trusted by
the entity that is being configured.
|
protected void |
addKeyDescriptorToMetaData(SSODescriptorType ssoDescriptor) |
protected void |
addNameIDFormatsToMetaData(SSODescriptorType idpSsoDescriptor) |
protected void |
addSloEndpointsToMetaData(SSODescriptorType ssoDescriptor) |
String |
getEntityId()
The unique identification of this SAML Entity.
|
abstract List<SamlExternalEntity> |
getExternalSamlEntities()
Gets a list of all external entities that have been added previously by
calling
SamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader). |
abstract SamlExternalEntity |
getExternalSamlEntityByEntityId(String entityId)
Gets the detailed of a trusted external entity, that has been added
previously by calling
SamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader). |
abstract SamlIdpOrSp |
getIdpOrSp() |
String |
getMetaDataURL()
Gets the URL where the meta data of this entity is served.
|
Map<String,SSODescriptorType> |
getMetaInfo() |
SamlBinding |
getPreferredBinding()
The preferred SAML protocol binding.
|
String |
getServiceURL(SamlServiceType service) |
protected SamlSigningKey |
getSigningKey() |
boolean |
isSingleLogoutMessagesSigned() |
boolean |
isWantSingleLogoutMessagesSigned() |
protected void |
readEntitiesDescriptor(Reader reader) |
protected EntityDescriptorType |
readEntityDescriptor(Reader metaInfoReader) |
void |
setEntityId(String entityId) |
void |
setPreferredBinding(SamlBinding preferredBinding)
|
void |
setSigningKey(String keyStoreUrl,
String keyStorePass,
String signingKeyAlias,
String signingKeyPass)
Sets the key that is used to sign outgoing messages.
|
void |
setSingleLogoutMessagesSigned(boolean singleLogoutMessagesSigned) |
void |
setWantSingleLogoutMessagesSigned(boolean wantSingleLogoutMessagesSigned) |
abstract void |
writeMetaData(Writer writer) |
createURL, getHostName, getPort, getProtocol, setHostName, setPort, setProtocolclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHostName, getPort, getProtocol, setHostName, setPort, setProtocol@Inject protected JAXBContext metaDataJaxbContext
public String getServiceURL(SamlServiceType service)
public String getMetaDataURL()
SamlEntityConfigurationApigetMetaDataURL in interface SamlEntityConfigurationApipublic void setEntityId(String entityId)
SamlEntityConfigurationApisetEntityId in interface SamlEntityConfigurationApipublic String getEntityId()
SamlEntityConfigurationApigetEntityId in interface SamlEntityConfigurationApiprotected SamlSigningKey getSigningKey()
public void setSigningKey(String keyStoreUrl, String keyStorePass, String signingKeyAlias, String signingKeyPass)
SamlEntityConfigurationApisetSigningKey in interface SamlEntityConfigurationApikeyStoreUrl - URL of the key store, which must have Java Key Store
(JKS) format; if it starts with "classpath://", the keystore
will be read from the given location within the classpathkeyStorePass - the password giving access to the key storesigningKeyAlias - the alias under which the private key is stored
that needs to be used for signing; the private key must be
either a DSA or an RSA keysigningKeyPass - the password that gives access to the private keypublic boolean isSingleLogoutMessagesSigned()
public void setSingleLogoutMessagesSigned(boolean singleLogoutMessagesSigned)
public boolean isWantSingleLogoutMessagesSigned()
public void setWantSingleLogoutMessagesSigned(boolean wantSingleLogoutMessagesSigned)
public abstract SamlIdpOrSp getIdpOrSp()
public abstract SamlExternalEntity getExternalSamlEntityByEntityId(String entityId)
SamlEntityConfigurationApiSamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader).getExternalSamlEntityByEntityId in interface SamlEntityConfigurationApientityId - the id of the entitypublic abstract SamlExternalEntity addExternalSamlEntity(Reader reader)
SamlEntityConfigurationApiSamlEntityConfigurationApi.getMetaDataURL().addExternalSamlEntity in interface SamlEntityConfigurationApireader - reader that reads the meta information of the entry that
needs to be addedpublic abstract List<SamlExternalEntity> getExternalSamlEntities()
SamlEntityConfigurationApiSamlEntityConfigurationApi.addExternalSamlEntity(java.io.Reader).getExternalSamlEntities in interface SamlEntityConfigurationApiprotected void readEntitiesDescriptor(Reader reader)
public Map<String,SSODescriptorType> getMetaInfo()
protected EntityDescriptorType readEntityDescriptor(Reader metaInfoReader)
public abstract void writeMetaData(Writer writer)
protected void addKeyDescriptorToMetaData(SSODescriptorType ssoDescriptor)
protected void addSloEndpointsToMetaData(SSODescriptorType ssoDescriptor)
protected void addNameIDFormatsToMetaData(SSODescriptorType idpSsoDescriptor)
public SamlBinding getPreferredBinding()
SamlEntityConfigurationApiSamlBinding.HTTP_PostgetPreferredBinding in interface SamlEntityConfigurationApipublic void setPreferredBinding(SamlBinding preferredBinding)
SamlEntityConfigurationApisetPreferredBinding in interface SamlEntityConfigurationApiCopyright © 2013 Seam Framework. All Rights Reserved.