psdi.security.ldap

Class SyncData

  • java.lang.Object
    • psdi.security.ldap.SyncData


  • public class SyncData
    extends java.lang.Object
    A class to prepresent synchronization data that's obtained from the LDAP server. The data can be retrieved based on attribute names. The data value can be null for a given attribute if either the attribute does not exist or the value itself is null.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SyncData() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String get(java.lang.String attributeName)
      Returns attribute value for the given attribute name.
      java.util.Iterator getAttributes()
      Returns an Iterator object to iterate over the list of attribute names.
      void put(java.lang.String attributeName, java.lang.String value)
      Added the given attribute and it's corresponding value to the cache.
      int size()
      Returns the number of attributes in the cache.
      java.lang.String toString()
      For debugging.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SyncData

        public SyncData()
    • Method Detail

      • get

        public java.lang.String get(java.lang.String attributeName)
        Returns attribute value for the given attribute name.
        Parameters:
        attributeName - attribute name
        Returns:
        value for the given attribute name.
      • put

        public void put(java.lang.String attributeName,
                        java.lang.String value)
        Added the given attribute and it's corresponding value to the cache.
        Parameters:
        attributeName - attribute name
        value - value
      • getAttributes

        public java.util.Iterator getAttributes()
        Returns an Iterator object to iterate over the list of attribute names.
        Returns:
        an Iterator object to iterate over the list of attribute names.
      • size

        public int size()
        Returns the number of attributes in the cache.
        Returns:
        the number of attributes in the cache.
      • toString

        public java.lang.String toString()
        For debugging.
        Overrides:
        toString in class java.lang.Object