host-me-app/host-me

View on GitHub
app/src/main/java/ch/epfl/sweng/hostme/call/AccessToken.java

Summary

Maintainability
A
1 hr
Test Coverage
A
94%

Showing 2 of 2 total issues

Method generateSignature has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public static byte[] generateSignature(String appCertificate,
String appID, String channelName, String uid, byte[] message) throws Exception {
Severity: Minor
Found in app/src/main/java/ch/epfl/sweng/hostme/call/AccessToken.java - About 35 mins to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    public PackContent(byte[] signature, int crcChannelName, int crcUid, byte[] rawMessage) {
    this.signature = signature;
    this.crcChannelName = crcChannelName;
    this.crcUid = crcUid;
    this.rawMessage = rawMessage;
    Severity: Minor
    Found in app/src/main/java/ch/epfl/sweng/hostme/call/AccessToken.java and 1 other location - About 40 mins to fix
    app/src/main/java/ch/epfl/sweng/hostme/account/AccountUtils.java on lines 33..38
    Category
    Status