Continue AuthToken development changes.
This commit is contained in:
@@ -287,24 +287,23 @@ public class AuthToken
|
||||
*/
|
||||
public static String validate(String authTokenString)
|
||||
{
|
||||
String idenTokenString = NULL;
|
||||
|
||||
// Instantiate the AuthToken, this validates the token itself.
|
||||
try
|
||||
{
|
||||
AuthToken authToken = new AuthToken(authTokenString);
|
||||
|
||||
// If we are here is because the token validation succeeded,
|
||||
// obtain the identity token string.
|
||||
idenTokenString = authToken.getIdentityToken();
|
||||
// return the identity token string.
|
||||
return authToken.getIdentityToken();
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// The validation of one of the tokens failed
|
||||
// tbd - Log
|
||||
System.err.println("AuthToken.validate()- Exception caught during token processing, msg: " + e.getMessage());
|
||||
}
|
||||
|
||||
return idenTokenString;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user