Class WSFedPropertiesModelImpl

    • Constructor Detail

      • WSFedPropertiesModelImpl

        public WSFedPropertiesModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                                        Map map)
        Creates a new instance of WSFedPropertiesModelImpl
    • Method Detail

      • getServiceProviderAttributes

        public Map getServiceProviderAttributes​(String realm,
                                                String fedId)
                                         throws AMConsoleException
        Returns a map with service provider attributes and values.
        Specified by:
        getServiceProviderAttributes in interface WSFedPropertiesModel
        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 a Map with identity provider attributes and values.
        Specified by:
        getIdentityProviderAttributes in interface WSFedPropertiesModel
        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 the FederationElement for the given realm and federation ID.
        Specified by:
        getEntityDesc in interface WSFedPropertiesModel
        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:
        getTokenName in interface WSFedPropertiesModel
        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:
        getTokenEndpoint in interface WSFedPropertiesModel
        Parameters:
        fedElem - is the FederationElement Object.
        Returns:
        TokenIssuerEndPoint for the FederationElement passed.
      • 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:
        setGenAttributeValues in interface WSFedPropertiesModel
        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:
        setSPExtAttributeValues in interface WSFedPropertiesModel
        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:
        setIDPExtAttributeValues in interface WSFedPropertiesModel
        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:
        setIDPSTDAttributeValues in interface WSFedPropertiesModel
        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:
        getGenAttributes in interface WSFedPropertiesModel
        Returns:
        Map of wsfed general attributes.
      • getDualRoleAttributes

        public Map getDualRoleAttributes()
        Returns a map of wsfed general attribute values for dual role.
        Specified by:
        getDualRoleAttributes in interface WSFedPropertiesModel
        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:
        getSPEXDataMap in interface WSFedPropertiesModel
        Returns:
        Map of Wsfed Service Provider extended attributes.
      • getIDPEXDataMap

        public Map getIDPEXDataMap()
        Returns a map of ext Wsfed Identity Provider extended attributes.
        Specified by:
        getIDPEXDataMap in interface WSFedPropertiesModel
        Returns:
        Map of Wsfed Identity Provider extended attributes.
      • getIDPSTDDataMap

        public Map getIDPSTDDataMap()
        Returns a map of Wsfed Identity Provider Standard attributes.
        Specified by:
        getIDPSTDDataMap in interface WSFedPropertiesModel
        Returns:
        Map of Wsfed Identity Provider Standard attributes.