Configuring the hash algorithm for attribute storage
Hashing encodes a character string as a fixed-length bit string for comparison. Context-based access hashes certain attributes by default. You can change the hash algorithm and specify additional attributes that you want to hash.
About this task
By default, when attributes are stored in the context-based access database, the attributes that exceed the maximum length according to the schema are hashed. You can also specify any other attribute that you require to be hashed. For example, you might want to hash values that are considered confidential or private.
The default
hash algorithm that context-based access uses for storing these attributes
is SHA256. Context-based access also uses the default
when the hash algorithm is not configured properly. You can specify
any other hash algorithm that Java™ Security
supports.
Procedure
- Log in to the local management interface.
- Click AAC.
- Under Global Settings, click Advanced Configuration.
- Under Key, find the name of the property that you must work with.
- Take one of the following actions:
- Configure the
attributeCollection.attributesHashEnabledproperty.- Click the edit icon
. - Enter the Identifier names of the attributes that you want the
attributeCollection.attributesHashEnabledproperty to hash. For example: urn:ibm:security:environment:http:userAgent, urn:ibm:security:environment:deviceFonts, urn:ibm:security:environment:browserPluginsTo find the list of attributes that context-based access can hash, complete the following steps:- Log in to your local management interface
- Click AAC
- Under Policy, click Attributes.
- Select the name of an attribute, and click Modify attributes
. - Under Modify Attribute, find the Identifier of the attribute.
- Use the Identifier of the attribute in your list of attributes that you want context-based access to hash.
- Click Cancel to exit.
- Click the edit icon
- Configure the
attributeCollection.hashAlgorithmproperty.- Click the edit icon
. - Set the value for the
attributeCollection.hashAlgorithmproperty to one of the following values:- SHA1
- SHA512
- SHA256
- Click Save.
- Click the edit icon
- Configure the
- When you make changes to the properties, the appliance displays a message that there are undeployed changes. If you are finished making changes, deploy them.