Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by jeff.waterman · Mar 07, 2019 at 05:19 PM · rfa java

Principle identity and how to create one

My question

Do you have to send all detail ie, user, application and position, or can you leave position blank.


publicStandardPrincipalIdentity createStandardIdentity(String userName, String appName, String position) {

finalStandardPrincipalIdentity identity =newStandardPrincipalIdentity();

identity.setAppName(appName);

identity.setName(userName);

if(position !=null) {

identity.setPosition(position);

}else{

// if no explicit position has been specified, make sure we set a blank position and not 127.0.0.1/default// this is required so DACS authentication works correctlyidentity.setPosition("");

}returnidentity;

}

packagecom.reuters.rfa.common;

importcom.reuters.rfa.common.PrincipalIdentity;importcom.reuters.rfa.common.PrincipalIdentity.PrincipalIdentityType;

public final classStandardPrincipalIdentityextendsPrincipalIdentity {

String _userName ="";

String _appName ="";

String _position ="";

publicStandardPrincipalIdentity() {

}

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Pimchaya.Wongrukun · Mar 07, 2019 at 11:44 PM

Hello @jeff.waterman

If your application connects to TREP(ADS component) to consume data, using StandardPrincipalIdentity to perform local entitlements by RFA is deprecated. TREP performs entitlement instead and RFA application just sends TokenizedPrincipalIdentity on SSL connection(default port is 8101). For the example application, please refer to MDSubDemo example application.

To perform local entitlements for the other scenario, OpenDACS product should be used instead. To use OpenDACS, just include rfa.jar which contains OpenDACS already.

Based on my test with OpenDACS: the user, application id, and position cannot be blank("") otherwise the application receives a login denied. Moreover, the position has to be in the correct format, IP address/hostname or IP address/net. For the example application source code, please see DacsSubscribeClient shipped with Open DACS API - Java Edition - 8.0.0.L1 package

Hope this help.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

RFA Java Client cannot connect to EZD Server

RFA can't receive response from server

Why consumer application receives OMMMsg.MsgType=STATUS_RESP from RFA after it sucess connect to ADS

We are get exceed throttleMaxCount warning?

how to deal with chains items such as 'LIBOR01'

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges