Class AuthenticationAttributes


  • public class AuthenticationAttributes
    extends java.lang.Object
    This class holds a set of authentication attributes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLIP
      The CLIP constant.
      static java.lang.String DEVICE
      The DEVICE constant.
      static java.lang.String HEADERS
      The HEADERS constant.
      static java.lang.String NODE_ID
      The NODE_ID constant.
      static java.lang.String REMOVE_QUERY_PARAMTER
      The removequeryparamter constant.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.String key, byte[] value)
      Adds a value to the list of associated values of the specified key.
      java.util.List<byte[]> getAttributes​(java.lang.String key)
      Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key.
      static java.util.List<java.lang.String> getDevices​(AuthenticationAttributes attributes)
      Use this method to fetch a list of devices (storage-keys) resolved by Access Point and sent to Policy Service upon a authentication request.
      java.util.Set<java.lang.String> keySet()
      Returns a set view of the attribute keys.
      int size()
      Returns the number of attributes.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NODE_ID

        public static final java.lang.String NODE_ID
        The NODE_ID constant.
        See Also:
        Constant Field Values
      • DEVICE

        public static final java.lang.String DEVICE
        The DEVICE constant.
        See Also:
        Constant Field Values
      • HEADERS

        public static final java.lang.String HEADERS
        The HEADERS constant.
        See Also:
        Constant Field Values
      • REMOVE_QUERY_PARAMTER

        public static final java.lang.String REMOVE_QUERY_PARAMTER
        The removequeryparamter constant.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuthenticationAttributes

        public AuthenticationAttributes()
    • Method Detail

      • addAttribute

        public void addAttribute​(java.lang.String key,
                                 byte[] value)
        Adds a value to the list of associated values of the specified key.
        Parameters:
        key - The key with which the specified value is to be associated.
        value - The value to be added to association list of the specified key.
      • getAttributes

        public java.util.List<byte[]> getAttributes​(java.lang.String key)
        Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key. A return value of null does not necessarily indicate that the map contains no mapping for the key; it is also possible that the map explicitly maps the key to null. The containsKey method may be used to distinguish these two cases.
        Parameters:
        key - The key whose associated value is to be returned.
        Returns:
        the The value to which this map maps the specified key, or null if the map contains no mapping for this key.
      • size

        public int size()
        Returns the number of attributes.
        Returns:
        The number of attributes.
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Returns a set view of the attribute keys.
        Returns:
        A set view of the attribute keys.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getDevices

        public static final java.util.List<java.lang.String> getDevices​(AuthenticationAttributes attributes)
        Use this method to fetch a list of devices (storage-keys) resolved by Access Point and sent to Policy Service upon a authentication request.
        Parameters:
        attributes - to read from.
        Returns:
        a list of devices (storage-keys) or an empty list. Will never return null.