protected void validateIdTokenIfAny ( final AccessToken accessToken , final CommonProfile profile ) throws MalformedClaimException { if ( StringUtils . isNotBlank ( accessToken . getIdToken ( ) ) ) { val idTokenResult = idTokenSigningAndEncryptionService . validate ( accessToken . getIdToken ( ) ) ; profile . setId ( idTokenResult . getSubject ( ) ) ; profile . addAttributes ( idTokenResult . getClaimsMap ( ) ) ; } }
Validate id token if any .