Package com.caplin.permissioning
Class SubjectMapping
java.lang.Object
com.caplin.permissioning.SubjectMapping
A convenience class that can be used by implementations of
SubjectMapper to store the keys and subject mappings passed to its
updateMappings method.-
Constructor Summary
ConstructorsConstructorDescriptionSubjectMapping(String key, Map<String, String> map) Creates a newSubjectMappingusing the passed inkeyandmap. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the passed in object to thisSubjectMapping.getKey()Gets the the key that was passed to the constructor.getMap()Gets the subject mappings that were passed to the constructor.inthashCode()Returns a hash code value for thisSubjectMapping.toString()Returns a string representation of thisSubjectMapping.
-
Constructor Details
-
SubjectMapping
Creates a newSubjectMappingusing the passed inkeyandmap.- Parameters:
key- the key for thisSubjectMapping.map- the subject mappings for thisSubjectMapping
-
-
Method Details
-
getKey
Gets the the key that was passed to the constructor.- Returns:
- the key
-
getMap
Gets the subject mappings that were passed to the constructor.- Returns:
- the subject mappings
-
toString
Returns a string representation of thisSubjectMapping. -
hashCode
public int hashCode()Returns a hash code value for thisSubjectMapping. This method is consistent with this class'equals(java.lang.Object)method, as required by the general contract of theObject.hashCode()method. -
equals
Compares the passed in object to thisSubjectMapping. Returns true if the objects are equal and false otherwise.
-