public class RelyingPartyUIContext
extends org.opensaml.messaging.context.BaseContext
RelyingPartyUIInformation.| Modifier and Type | Field and Description |
|---|---|
private List<String> |
browserLanguages
The languages that this browser wants to know about.
|
private Logger |
log
The log.
|
private org.opensaml.saml.saml2.metadata.AttributeConsumingService |
rpAttributeConsumingService
The appropriate
AttributeConsumingService. |
private org.opensaml.saml.saml2.metadata.EntityDescriptor |
rpEntityDescriptor
The appropriate
EntityDescriptor. |
private org.opensaml.saml.saml2.metadata.SPSSODescriptor |
rpSPSSODescriptor
The appropriate
SPSSODescriptor. |
private org.opensaml.saml.ext.saml2mdui.UIInfo |
rpUIInfo
The appropriate
UIInfo. |
| Constructor and Description |
|---|
RelyingPartyUIContext() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getBrowserLanguages()
Get the browser languages.
|
protected org.opensaml.saml.saml2.metadata.ContactPerson |
getContactPerson(org.opensaml.saml.saml2.metadata.ContactPersonTypeEnumeration contactType)
Lookup the specified type of Contact in the RP metadata.
|
protected org.opensaml.saml.saml2.metadata.ContactPersonTypeEnumeration |
getContactType(String type)
Parser for the contact type.
|
protected String |
getDescriptionFromAttributeConsumingService(String lang)
look for an <AttributeConsumeService> and if its there look for an appropriate description.
|
protected String |
getDescriptionFromUIInfo(String lang)
look at <UIInfo> if there and if so look for appropriate description.
|
String |
getEmail(String contactType,
String defaultValue)
look for the <ContactPerson> and within that the GivenName.
|
String |
getGivenName(String contactType,
String defaultValue)
look for the <ContactPerson> and within that the GivenName.
|
protected String |
getNameFromAttributeConsumingService(String lang)
Look for an <AttributeConsumeService> and if its there look for an appropriate name.
|
protected String |
getNameFromEntityId()
If the entityId can look like a host return that, otherwise the entityId in full.
|
protected String |
getNameFromUIInfo(String lang)
look at <UIinfo>; if there and if so look for appropriate name.
|
protected org.opensaml.saml.saml2.metadata.Organization |
getOrganization()
Get the
Organization from the SPSODescriptor, failing that the EntityDescriptor. |
String |
getOrganizationDisplayName(String defaultValue)
look for the <OrganizationDisplayName>.
|
String |
getOrganizationName(String defaultValue)
look for the <OrganizationName>.
|
org.opensaml.saml.saml2.metadata.AttributeConsumingService |
getRPAttributeConsumingService()
Get the
AttributeConsumingService for the request. |
org.opensaml.saml.saml2.metadata.EntityDescriptor |
getRPEntityDescriptor()
Get the
EntityDescriptor. |
org.opensaml.saml.saml2.metadata.SPSSODescriptor |
getRPSPSSODescriptor()
Get the
SPSSODescriptor. |
org.opensaml.saml.ext.saml2mdui.UIInfo |
getRPUInfo()
Get the RP
UIInfo associated with the request. |
void |
getRPUInfo(org.opensaml.saml.ext.saml2mdui.UIInfo what)
Set the RP
UIInfo associated with the request. |
String |
getServiceName(String defaultValue)
Get the service name.
|
String |
getSurName(String contactType,
String defaultValue)
look for the <ContactPerson> and within that the SurName.
|
void |
setBrowserLanguages(List<String> languages)
Set the browser languages.
|
void |
setRPAttributeConsumingService(org.opensaml.saml.saml2.metadata.AttributeConsumingService what)
Set the
AttributeConsumingService for the request. |
void |
setRPEntityDescriptor(org.opensaml.saml.saml2.metadata.EntityDescriptor what)
Set the
EntityDescriptor. |
void |
setRPSPSSODescriptor(org.opensaml.saml.saml2.metadata.SPSSODescriptor what)
Set the
SPSSODescriptor. |
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nullable private org.opensaml.saml.saml2.metadata.EntityDescriptor rpEntityDescriptor
EntityDescriptor.@Nullable private org.opensaml.saml.saml2.metadata.SPSSODescriptor rpSPSSODescriptor
SPSSODescriptor.@Nullable private org.opensaml.saml.saml2.metadata.AttributeConsumingService rpAttributeConsumingService
AttributeConsumingService.@Nullable private org.opensaml.saml.ext.saml2mdui.UIInfo rpUIInfo
UIInfo.@Nullable public org.opensaml.saml.saml2.metadata.EntityDescriptor getRPEntityDescriptor()
EntityDescriptor.public void setRPEntityDescriptor(@Nonnull org.opensaml.saml.saml2.metadata.EntityDescriptor what)
EntityDescriptor.what - what to set.@Nullable public org.opensaml.saml.saml2.metadata.SPSSODescriptor getRPSPSSODescriptor()
SPSSODescriptor.public void setRPSPSSODescriptor(@Nonnull org.opensaml.saml.saml2.metadata.SPSSODescriptor what)
SPSSODescriptor.what - what to set.@Nullable public org.opensaml.saml.saml2.metadata.AttributeConsumingService getRPAttributeConsumingService()
AttributeConsumingService for the request.@Nullable public org.opensaml.saml.ext.saml2mdui.UIInfo getRPUInfo()
UIInfo associated with the request.public void getRPUInfo(@Nullable org.opensaml.saml.ext.saml2mdui.UIInfo what)
UIInfo associated with the request.what - the value to set.public void setRPAttributeConsumingService(@Nonnull org.opensaml.saml.saml2.metadata.AttributeConsumingService what)
AttributeConsumingService for the request.what - what to set.public void setBrowserLanguages(@Nonnull List<String> languages)
languages - the languages to set.@Nonnull public List<String> getBrowserLanguages()
@Nullable protected String getNameFromUIInfo(String lang)
lang - - which language to look up@Nullable protected String getNameFromAttributeConsumingService(String lang)
lang - - which language to look up@Nullable protected String getNameFromEntityId()
@Nullable protected String getDescriptionFromUIInfo(String lang)
lang - - which language to look up@Nullable protected String getDescriptionFromAttributeConsumingService(String lang)
lang - - which language to look up@Nullable protected org.opensaml.saml.saml2.metadata.Organization getOrganization()
Organization from the SPSODescriptor, failing that the EntityDescriptor.Organization for the relying party.protected org.opensaml.saml.saml2.metadata.ContactPersonTypeEnumeration getContactType(@Nullable String type)
type - in value@Nullable protected org.opensaml.saml.saml2.metadata.ContactPerson getContactPerson(org.opensaml.saml.saml2.metadata.ContactPersonTypeEnumeration contactType)
contactType - what type to look up.ContactPerson or null.@Nullable public String getServiceName(@Nullable String defaultValue)
defaultValue - what to provide if this is an anonymous lookup@Nullable public String getOrganizationDisplayName(@Nullable String defaultValue)
defaultValue - what to provide if the lookup fails@Nullable public String getOrganizationName(@Nullable String defaultValue)
defaultValue - what to provide if the lookup fails@Nullable public String getSurName(@Nullable String contactType, @Nullable String defaultValue)
contactType - the type of contact to look fordefaultValue - what to provide if the lookup fails@Nullable public String getGivenName(@Nullable String contactType, @Nullable String defaultValue)
contactType - the type of contact to look fordefaultValue - what to provide if the lookup fails@Nullable public String getEmail(@Nullable String contactType, @Nullable String defaultValue)
contactType - the type of contact to look fordefaultValue - what to provide if the lookup failsCopyright © 1999–2014. All rights reserved.