Class WSFedPropertiesModelImpl
- java.lang.Object
-
- com.sun.identity.console.base.model.AMModelBase
-
- com.sun.identity.console.federation.model.EntityModelImpl
-
- com.sun.identity.console.federation.model.WSFedPropertiesModelImpl
-
- All Implemented Interfaces:
AMAdminConstants,AMModel,EntityModel,WSFedPropertiesModel
public class WSFedPropertiesModelImpl extends EntityModelImpl implements WSFedPropertiesModel
-
-
Field Summary
-
Fields inherited from class com.sun.identity.console.base.model.AMModelBase
debug, locale, locationDN
-
Fields inherited from interface com.sun.identity.console.base.model.AMAdminConstants
ADMIN_CONSOLE_SERVICE, ADMIN_DISPLAY_ATTRIBUTE, ADMIN_DISPLAY_READONLY_ATTRIBUTE, AGENT_REPOSITORY_LOCATION_ATTR, AGENTS_NODE_ID, AMSDK_DEBUG_FILENAME, ATTR_USER_OLD_PASSWORD, ATTR_USER_PASSWORD, ATTR_USER_RESOURCE_OFFERING, ATTR_USER_STATUS, AUTH_CONFIG_SERVICE, CDM_CONTENT_TYPE_PROPERTY_NAME, CHOICES, CONFIGURATION_NODE_ID, CONSOLE_DEBUG_FILENAME, CONSOLE_LOCATION_DN, CONSOLE_ORG_CUSTOM_JSP_DIRECTORY, CONSOLE_UM_ENABLED_ATTR, CONSOLE_USER_ATTRS_SEARCH_KEY, CONSOLE_USER_SEARCH_KEY, CONSOLE_USER_SEARCH_RETURN_KEY, CORE_AUTH_SERVICE, CURRENT_ORG, CURRENT_PROFILE, CURRENT_REALM, DEFAULT_RB, DEFAULT_SEARCH_TIMEOUT, DISCOVERY_SERVICE, DISCOVERY_SERVICE_NAME_BOOTSTRAP_RES_OFF, DISCOVERY_SERVICE_NAME_DYNAMIC_DISCO_ENTRIES, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER_ID_MAPPER, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER_PROVIDER_ID, DISPLAY_ATTRIBUTE, DISPLAY_READONLY_ATTRIBUTE, DYN_LINK_COMPONENT_NAME, ENCRYPTED, FED_TAB_ID, G11N_SERIVCE_COMMON_NAME_FORMAT, G11N_SERVICE_NAME, IDREPO_SERVICE_NAME, IMAGES_PRIMARY_PRODUCT_NAME_PNG, OPERATION_ADD, OPERATION_EDIT, OPTIONAL_ATTRIBUTE, ORGANIZATION_NODE_ID, PASSWORD, PERMISSION_DELEGATE, PERMISSION_MODIFY, PERMISSION_READ, PG_SESSION_INIT_PAGETRAIL, PLATFORM_SERVICE, POLICY_SELECTED_RESPONSE_PROVIDER, POLICY_SERVICE, PREVIOUS_ORGANIZATION, PREVIOUS_REALM, PREVIOUS_TAB_ID, PW_RESET_SERVICE, REALM_NODE_ID, REQUIRED_ATTRIBUTE, REST_STS_SERVICE, ROLE_DISPLAY_OPTION_ATTRIBUTE_NAME, SAML_SERVICE, SAVE_VB_NAME, SERVICE_NAME, SESSION_SERVICE, SESSIONS_NODE_ID, SOAP_STS_SERVICE, SSO_TOKEN_LOCALE_ATTRIBUTE_NAME, SSO_TOKEN_ORGANIZATION_ATTRIBUTE_NAME, STRING_ACTIVE, STRING_FALSE, STRING_INACTIVE, SUBJECTS_NODE_ID, TAB_AGENT_PREFIX, TAB_AGENT_PREFIX_INT, URL_LOGIN, URL_LOGOUT, USER_SERVICE, USER_SERVICE_PREFERRED_LOCALE, VALUES
-
Fields inherited from interface com.sun.identity.console.base.model.AMModel
CONSOLE_PAGING_SIZE_ATTR, CONSOLE_SEARCH_RESULT_LIMIT_ATTR, CONSOLE_SEARCH_TIME_LIMIT_ATTR, DEFAULT_PAGE_SIZE, DEFAULT_SEARCH_RESULT_LIMIT, DEFAULT_SEARCH_TIME_LIMIT
-
Fields inherited from interface com.sun.identity.console.federation.model.EntityModel
AFFILIATE, GENERAL, HOSTED, IDENTITY_PROVIDER, IDFF, IDFF_AFFILAITAE, LOCATION, POLICY_DECISION_POINT_DESCRIPTOR, POLICY_ENFORCEMENT_POINT_DESCRIPTOR, PROTOCOL, REALM, REMOTE, ROLE, SAML_ATTRAUTHORITY, SAML_ATTRQUERY, SAML_AUTHNAUTHORITY, SAMLV2, SAMLv2_AFFILAITAE, SERVICE_PROVIDER, WSFED
-
Fields inherited from interface com.sun.identity.console.federation.model.WSFedPropertiesModel
COT_LIST, DUAL, IS_HOSTED, TF_DISPNAME, TF_ENTPROTOCOL, TF_ENTROLE, TF_NAME, TF_REALM, TFACCT_HOMEREALM_DISC_SERVICE, TFACCT_REALM_COOKIE, TFACCT_REALM_SELECTION, TFASSERT_SIGNED, TFASSERT_TIMESKEW, TFASSERTEFFECT_TIME, TFAUTHCONT_COMPARTYPE, TFAUTHCONTCLASS_REFMAPPING, TFAUTOFED_ENABLED, TFCLAIM_DESC, TFCLAIM_NAME, TFCLAIM_OTHER, TFCLAIM_TYPES, TFCLAIM_URI, TFCOKKI_NAME, TFDOMAIN_ATTRIBUTE, TFIDPACCT_MAPPER, TFIDPASSERT_TIME, TFIDPATTR_MAP, TFIDPATTR_MAPPER, TFIDPAUTH_CONTMAPPER, TFIDPAUTOFED_ATTR, TFIDPDISP_NAME, TFNAME_INCLU_DOMAIN, TFNAMEID_ATTRIBUTE, TFNAMEID_FORMAT, TFRELAY_STATE, TFSIGNCERT_ALIAS, TFSPACCT_MAPPER, TFSPATTR_MAP, TFSPATTR_MAPPER, TFSPAUTHCONT_MAPPER, TFSPAUTOFED_ATTR, TFSPAUTOFED_ENABLED, TFTOKENISSUER_ENDPT, TFTOKENISSUER_NAME, TFUPN_DOMAIN, TFUSR_AGENT_NAME, WREPLY_LIST
-
-
Constructor Summary
Constructors Constructor Description WSFedPropertiesModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)Creates a new instance of WSFedPropertiesModelImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClaimType(FederationElement fedElem)Returns display name of claim type.MapgetDualRoleAttributes()Returns a map of wsfed general attribute values for dual role.FederationElementgetEntityDesc(String realm, String fedId)Returns theFederationElementfor the given realm and federation ID.MapgetGenAttributes()Returns a map of wsfed general attributes.MapgetIdentityProviderAttributes(String realm, String fedId)Returns aMapwith identity provider attributes and values.MapgetIDPEXDataMap()Returns a map of ext Wsfed Identity Provider extended attributes.MapgetIDPSTDDataMap()Returns a map of Wsfed Identity Provider Standard attributes.MapgetServiceProviderAttributes(String realm, String fedId)Returns a map with service provider attributes and values.MapgetSPEXDataMap()Returns a map of Wsfed Service Provider extended attributes.StringgetTokenEndpoint(FederationElement fedElem)Returns TokenIssuerEndPoint for the FederationElement passed.StringgetTokenName(FederationElement fedElem)Returns TokenIssuerName for the FederationElement passed.protected WSFederationMetaManagergetWSFederationMetaManager()voidsetGenAttributeValues(String realm, String fedId, Map idpStdValues, String role, String location)Saves the attribute values from the General page.voidsetIDPExtAttributeValues(String realm, String fedId, Map idpExtValues, String location)Saves the standard attribute values for the SP.voidsetIDPSTDAttributeValues(String entityName, Map idpStdValues, String realm, Map idpExtValues, String location)Saves the standard attribute values for the IDP.voidsetSPExtAttributeValues(String realm, String fedId, Map spExtvalues, String location)Saves the extended metadata attribute values for the SP.-
Methods inherited from class com.sun.identity.console.federation.model.EntityModelImpl
convertListToSet, convertSetToList, convertSetToListInMap, createEntity, deleteEntities, getEntities, getIDFFEntities, getIDFFRoles, getSAMLv2Entities, getSAMLv2Roles, getTabMenu, getWSFedEntities, getWSFedRoles, isAffiliate, returnEmptyListIfValueIsNull, returnEmptyListIfValueIsNull, returnEmptySetIfValueIsNull, returnEmptySetIfValueIsNull, returnEmptySetIfValueIsNull, returnEmptySetIfValueIsNull
-
Methods inherited from class com.sun.identity.console.base.model.AMModelBase
encryptString, getAttributesToDisplay, getAuthenticatedOrgDN, getClientType, getConsoleAttributes, getConsoleDirectory, getErrorString, getGlobalPageSize, getGlobalSearchResultLimit, getGlobalSearchTimeOutLimit, getLocalizedServiceName, getLocalizedServiceName, getLocalizedString, getLocationDN, getLogoutURL, getPageSize, getRandomString, getRealmNames, getResourceBundle, getSearchResultLimit, getSearchTimeOutLimit, getServerInstanceForLogMsg, getServicePropertiesViewBeanURL, getServiceResourceBundle, getServiceSchemaManager, getSpecialUsers, getStartDN, getStartDN, getStartDSDN, getSupportedAgentTypes, getSupportedEntityTypes, getUniversalID, getUserAdditionalSearchAttributes, getUserDisplayAttribute, getUserDisplayName, getUserDN, getUserInfo, getUserLocale, getUserName, getUserOrganization, getUserSearchAttribute, getUserSSOToken, ignoreUserProfile, initialize, isAmadminUser, isAMSDKEnabled, isDisplayed, logEvent, setLocationDN, validateUserStatusEntry
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.console.base.model.AMModel
getClientType, getConsoleDirectory, getErrorString, getLocalizedServiceName, getLocalizedString, getLocationDN, getPageSize, getRandomString, getRealmNames, getServicePropertiesViewBeanURL, getSpecialUsers, getStartDN, getStartDSDN, getSupportedAgentTypes, getSupportedEntityTypes, getUniversalID, getUserDisplayName, getUserDN, getUserLocale, getUserName, getUserSSOToken, ignoreUserProfile, isAmadminUser, isAMSDKEnabled, logEvent, setLocationDN
-
Methods inherited from interface com.sun.identity.console.federation.model.EntityModel
createEntity, deleteEntities, getEntities, getIDFFEntities, getIDFFRoles, getSAMLv2Entities, getSAMLv2Roles, getTabMenu, getWSFedEntities, isAffiliate
-
-
-
-
Constructor Detail
-
WSFedPropertiesModelImpl
public WSFedPropertiesModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)Creates a new instance of WSFedPropertiesModelImpl
-
-
Method Detail
-
getWSFederationMetaManager
protected WSFederationMetaManager getWSFederationMetaManager() throws WSFederationMetaException
- Throws:
WSFederationMetaException
-
getServiceProviderAttributes
public Map getServiceProviderAttributes(String realm, String fedId) throws AMConsoleException
Returns a map with service provider attributes and values.- Specified by:
getServiceProviderAttributesin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the Federation Id otherwise known as the entity id.- Returns:
- attribute values of SP based on realm and fedId passed.
- Throws:
AMConsoleException- if unable to retreive the Service Provider attrubutes based on the realm and fedId passed.
-
getIdentityProviderAttributes
public Map getIdentityProviderAttributes(String realm, String fedId) throws AMConsoleException
Returns aMapwith identity provider attributes and values.- Specified by:
getIdentityProviderAttributesin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the Federation Id otherwise known as the entity id.- Returns:
- attribute values of IDP based on realm and fedId passed.
- Throws:
AMConsoleException- if unable to retreive the Identity Provider attrubutes based on the realm and fedId passed.
-
getEntityDesc
public FederationElement getEntityDesc(String realm, String fedId) throws AMConsoleException
Returns theFederationElementfor the given realm and federation ID.- Specified by:
getEntityDescin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the Federation ID otherwise known as the entity id.- Returns:
- FederationElement Object for the realm and fedId passed.
- Throws:
AMConsoleException- if unable to retrieve the FederationElement Object.
-
getTokenName
public String getTokenName(FederationElement fedElem)
Returns TokenIssuerName for the FederationElement passed.- Specified by:
getTokenNamein interfaceWSFedPropertiesModel- Parameters:
fedElem- is the FederationElement Object.- Returns:
- TokenIssuerName for the FederationElement passed.
-
getTokenEndpoint
public String getTokenEndpoint(FederationElement fedElem)
Returns TokenIssuerEndPoint for the FederationElement passed.- Specified by:
getTokenEndpointin interfaceWSFedPropertiesModel- Parameters:
fedElem- is the FederationElement Object.- Returns:
- TokenIssuerEndPoint for the FederationElement passed.
-
getClaimType
public String getClaimType(FederationElement fedElem)
Returns display name of claim type.- Specified by:
getClaimTypein interfaceWSFedPropertiesModel- Parameters:
fedElem- is the FederationElement Object.- Returns:
- display name of claim type.
-
setGenAttributeValues
public void setGenAttributeValues(String realm, String fedId, Map idpStdValues, String role, String location) throws AMConsoleException
Saves the attribute values from the General page.- Specified by:
setGenAttributeValuesin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the entity id.idpStdValues- has the General standard attribute value pairs.role- of the entity ID.location- specifies if the entity is remote or local.- Throws:
AMConsoleException- if saving of attribute value fails.
-
setSPExtAttributeValues
public void setSPExtAttributeValues(String realm, String fedId, Map spExtvalues, String location) throws AMConsoleException
Saves the extended metadata attribute values for the SP.- Specified by:
setSPExtAttributeValuesin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the entity id.spExtvalues- has the extended attribute value pairs of SP.location- has the information whether remote or hosted.- Throws:
AMConsoleException- if saving of attribute value fails.
-
setIDPExtAttributeValues
public void setIDPExtAttributeValues(String realm, String fedId, Map idpExtValues, String location) throws AMConsoleException
Saves the standard attribute values for the SP.- Specified by:
setIDPExtAttributeValuesin interfaceWSFedPropertiesModel- Parameters:
realm- to which the entity belongs.fedId- is the entity id.idpExtValues- has the extended attribute value pairs of IDP.location- has the information whether remote or hosted.- Throws:
AMConsoleException- if saving of attribute value fails.
-
setIDPSTDAttributeValues
public void setIDPSTDAttributeValues(String entityName, Map idpStdValues, String realm, Map idpExtValues, String location) throws AMConsoleException
Saves the standard attribute values for the IDP.- Specified by:
setIDPSTDAttributeValuesin interfaceWSFedPropertiesModel- Parameters:
entityName- is entityid.idpStdValues- contain standard attribute values of idp.realm- to which the entity belongs.idpExtValues- contain extended attribute values.location- the information whether remote or hosted.- Throws:
AMConsoleException- if saving of attribute value fails.
-
getGenAttributes
public Map getGenAttributes()
Returns a map of wsfed general attributes.- Specified by:
getGenAttributesin interfaceWSFedPropertiesModel- Returns:
- Map of wsfed general attributes.
-
getDualRoleAttributes
public Map getDualRoleAttributes()
Returns a map of wsfed general attribute values for dual role.- Specified by:
getDualRoleAttributesin interfaceWSFedPropertiesModel- Returns:
- Map of wsfed general attribute values for dual role.
-
getSPEXDataMap
public Map getSPEXDataMap()
Returns a map of Wsfed Service Provider extended attributes.- Specified by:
getSPEXDataMapin interfaceWSFedPropertiesModel- Returns:
- Map of Wsfed Service Provider extended attributes.
-
getIDPEXDataMap
public Map getIDPEXDataMap()
Returns a map of ext Wsfed Identity Provider extended attributes.- Specified by:
getIDPEXDataMapin interfaceWSFedPropertiesModel- Returns:
- Map of Wsfed Identity Provider extended attributes.
-
getIDPSTDDataMap
public Map getIDPSTDDataMap()
Returns a map of Wsfed Identity Provider Standard attributes.- Specified by:
getIDPSTDDataMapin interfaceWSFedPropertiesModel- Returns:
- Map of Wsfed Identity Provider Standard attributes.
-
-