Class AuthenticationAttributes
- java.lang.Object
-
- com.portwise.mvpnms.controller.authentication.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
TheCLIP
constant.static java.lang.String
DEVICE
TheDEVICE
constant.static java.lang.String
HEADERS
TheHEADERS
constant.static java.lang.String
NODE_ID
TheNODE_ID
constant.static java.lang.String
REMOVE_QUERY_PARAMTER
Theremovequeryparamter
constant.
-
Constructor Summary
Constructors Constructor Description AuthenticationAttributes()
-
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()
-
-
-
Field Detail
-
NODE_ID
public static final java.lang.String NODE_ID
TheNODE_ID
constant.- See Also:
- Constant Field Values
-
DEVICE
public static final java.lang.String DEVICE
TheDEVICE
constant.- See Also:
- Constant Field Values
-
HEADERS
public static final java.lang.String HEADERS
TheHEADERS
constant.- See Also:
- Constant Field Values
-
CLIP
public static final java.lang.String CLIP
TheCLIP
constant.- See Also:
- Constant Field Values
-
REMOVE_QUERY_PARAMTER
public static final java.lang.String REMOVE_QUERY_PARAMTER
Theremovequeryparamter
constant.- See Also:
- Constant Field Values
-
-
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. ThecontainsKey
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 classjava.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.
-
-