000036544 - RSA Adaptive Authentication (OnPrem) 7.x - Couldn't decrypt/unwrap device token: java.lang.IllegalArgumentException: Illegal character

Document created by RSA Customer Support Employee on Aug 16, 2018
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000036544
Applies ToRSA Product Set: Adaptive Authentication (OnPrem)
RSA Product/Service Type: Adaptive Authentication (OnPrem)
RSA Version/Condition: 7.x
IssueCustomer is receiving error for Token decrypt:
Couldn't decrypt/unwrap device token: PMV62QOzgD8fdRpaxSNhgWDgtDTYeGy9N8QUU3G6bA3TrfOVITImPG/WmQ JYatWvmQ0fjayLUv2RDZq3RPP8pOxim4Q== with msg: java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal character 
CauseAs it can be noticed in the Device Token sent by the customer, there are invalid characters in the string including a blank space. 

It is possible that the customer is receiving the token in a URL Encoded format and their application is decoding it before sending back to AA.
ResolutionIt is highly recommended to send back to AA the same Device Token string as it was received from the initial call.  This Device Token information should not be changed in any way, not encoded, re-encoded, decoded or altered.

Attachments

    Outcomes