openvidu-ce: change connectionId to finalUserId in TokenServices comments

pull/623/head
cruizba 2021-04-29 18:49:05 +02:00
parent a8917c17ac
commit 69fa73c9c0
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import java.util.concurrent.ConcurrentHashMap;
* Each time a token is created, it is registered by {@link SessionManager} using {@link #registerToken(String, Participant, Token)} (String, Participant, Token)} * Each time a token is created, it is registered by {@link SessionManager} using {@link #registerToken(String, Participant, Token)} (String, Participant, Token)}
* All registered tokens will be present until {@link SessionManager} calls the method {@link #deregisterTokens(String)} * All registered tokens will be present until {@link SessionManager} calls the method {@link #deregisterTokens(String)}
* *
* The purpose of this service is to know when a token was registered into a session with its correspondent connectionId * The purpose of this service is to know when a token was registered into a session with its correspondent finalUserId
* All maps of this class are present to be able to verify this in the most optimal way * All maps of this class are present to be able to verify this in the most optimal way
*/ */
public class TokenRegister { public class TokenRegister {
@ -75,8 +75,8 @@ public class TokenRegister {
return false; return false;
} }
// In this final state, if connectionId is equal to participant public id and session Id is the same, // In this final state, if finalUserId is equal to participant public id and session Id is the same,
// the token is registered correctly in the specific connectionId and sessionId // the token is registered correctly in the specific finalUserId and sessionId
return participantsByTokens.get(token).getFinalUserId().equals(finalUserId) return participantsByTokens.get(token).getFinalUserId().equals(finalUserId)
&& participantsByTokens.get(token).getSessionId().equals(sessionId); && participantsByTokens.get(token).getSessionId().equals(sessionId);