Class DiscoUtils


  • public class DiscoUtils
    extends DiscoSDKUtils
    Provides utility methods to discovery service.
    • Method Detail

      • checkPolicyAndHandleDirectives

        public static Map checkPolicyAndHandleDirectives​(String userDN,
                                                         Message message,
                                                         Collection results,
                                                         Authorizer authorizer,
                                                         SessionContext invoSession,
                                                         String wscID,
                                                         Object token)
        Checks policy and returns resource offerings and credentials.
        Parameters:
        userDN - user DN
        message - soap request Message received.
        results - Collection of InsertEntryType objects.
        authorizer - Authorizer object.
        invoSession - SessionContext
        wscID - web service client ID.
        token - token of this soap session.
        Returns:
        Map of following key value pairs:
          Key: OFFERINGS
          Value: List of ResourceOfferings
          Key: CREDENTIALS
          Value: List of credentials (Assertions)