Class SAML2ProviderManager

  • All Implemented Interfaces:
    ProviderManager

    public class SAML2ProviderManager
    extends Object
    implements ProviderManager
    The class SAML2ProviderManager retrieves properties consumed by IDWSF from providers defined in SAML2.
    • Constructor Detail

      • SAML2ProviderManager

        public SAML2ProviderManager()
    • Method Detail

      • containsProvider

        public boolean containsProvider​(String providerID)
        Returns whether the specified provider exists or not.
        Specified by:
        containsProvider in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        true if the specified provider exists, false if it doesn't exist.
      • isAffiliationMember

        public boolean isAffiliationMember​(String providerID,
                                           String affID)
        Returns whether the specified provider is a member of the specified affiliation or not.
        Specified by:
        isAffiliationMember in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        true if the specified provider is a member of the specified affiliation, false if it is not.
      • isNameIDEncryptionEnabled

        public boolean isNameIDEncryptionEnabled​(String providerID)
        Returns whether the specified provider requires name ID encryption or not.
        Specified by:
        isNameIDEncryptionEnabled in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        true if the specified provider requires name ID encryption, false if it doesn't.
      • getEncryptionKey

        public Key getEncryptionKey​(String providerID)
        Gets encryption certificate alias for specified provider.
        Specified by:
        getEncryptionKey in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        encryption certificate alias for specified provider.
      • getEncryptionKeyStrength

        public int getEncryptionKeyStrength​(String providerID)
        Gets encryption key size for specified provider.
        Specified by:
        getEncryptionKeyStrength in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        encryption key size for specified provider.
      • getEncryptionKeyAlgorithm

        public String getEncryptionKeyAlgorithm​(String providerID)
        Gets encryption key method for specified provider.
        Specified by:
        getEncryptionKeyAlgorithm in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        encryption key method for specified provider.
      • getDecryptionKey

        public PrivateKey getDecryptionKey​(String providerID)
        Gets decryption key for specified provider.
        Specified by:
        getDecryptionKey in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        decryption key for specified provider.
      • getSigningKeyAlias

        public String getSigningKeyAlias​(String providerID)
        Gets signing certificate alias for specified provider.
        Specified by:
        getSigningKeyAlias in interface ProviderManager
        Parameters:
        providerID - provider ID.
        Returns:
        signing certificate alias for specified provider.