Class DBServiceClient


  • public class DBServiceClient
    extends Object
    This class is a client that talks to a AbstractDBService.

    Created by Jeff Gaynor
    on 5/21/12 at 1:43 PM

    • Field Detail

      • idpKeys

        protected IDPKeys idpKeys
      • clientKeys

        protected org.oa4mp.delegation.common.storage.clients.ClientKeys clientKeys
      • clientApprovalKeys

        protected org.oa4mp.delegation.common.storage.clients.ClientApprovalKeys clientApprovalKeys
    • Constructor Detail

      • DBServiceClient

        public DBServiceClient​(String host,
                               String tokenKey)
    • Method Detail

      • getSslConfiguration

        public edu.uiuc.ncsa.security.util.ssl.SSLConfiguration getSslConfiguration()
      • setSslConfiguration

        public void setSslConfiguration​(edu.uiuc.ncsa.security.util.ssl.SSLConfiguration sslConfiguration)
      • doGet

        public edu.uiuc.ncsa.security.storage.XMLMap doGet​(String action,
                                                           edu.uiuc.ncsa.security.storage.XMLMap map)
      • doGet

        protected edu.uiuc.ncsa.security.storage.XMLMap doGet​(String action,
                                                              String[][] args)
      • getUser

        public edu.uiuc.ncsa.security.storage.XMLMap getUser​(UserMultiID umk,
                                                             String idp)
      • pairwiseStringArray

        protected String[][] pairwiseStringArray​(ArrayList<String> arg)
        Takes a long list of Strings and turns it into a string array suitable for the doGet(String, String[][]) method. This assumes an array list of strings of the form key1,value1, key2,value2,... and returns a 2xn array of the form {{key1,value},{key2,value2},...}
        Parameters:
        arg -
        Returns:
      • createRequest

        protected String[][] createRequest​(edu.uiuc.ncsa.security.storage.XMLMap map)
      • createUserRequest

        protected String[][] createUserRequest​(UserMultiID umk,
                                               String idp,
                                               String idpDisplayName,
                                               String firstName,
                                               String lastName,
                                               String email,
                                               String affilation,
                                               String displayName,
                                               String organizationalUnit)
        Create a request from whatever information is provided.
        Parameters:
        umk -
        idp -
        idpDisplayName -
        firstName -
        lastName -
        email -
        Returns:
      • getUser

        public edu.uiuc.ncsa.security.storage.XMLMap getUser​(User user)
        Convenience method to get a user with new information. This is, in effect, an update method if the user changes.
        Parameters:
        user -
        Returns:
      • getUser

        public edu.uiuc.ncsa.security.storage.XMLMap getUser​(edu.uiuc.ncsa.security.core.Identifier userUid)
      • setTwoFactorInfo

        public void setTwoFactorInfo​(TwoFactorInfo tfi)
      • getTwoFactorInfo

        public TwoFactorInfo getTwoFactorInfo​(edu.uiuc.ncsa.security.core.Identifier userUid)
      • removeUser

        public boolean removeUser​(edu.uiuc.ncsa.security.core.Identifier userUid)
      • hasUser

        public boolean hasUser​(edu.uiuc.ncsa.security.core.Identifier id)
      • getLastArchivedUser

        public edu.uiuc.ncsa.security.storage.XMLMap getLastArchivedUser​(edu.uiuc.ncsa.security.core.Identifier userUid)
      • getPortalParameters

        public edu.uiuc.ncsa.security.storage.XMLMap getPortalParameters​(String token)