()
| 141 | } |
| 142 | |
| 143 | @Override |
| 144 | public String toString(){ |
| 145 | StringBuilder sb = new StringBuilder(); |
| 146 | sb.append("signatureType: " + signatureType +"\n"); |
| 147 | sb.append("signature: " + Util.ByteArrayToString(signature) +"\n"); |
| 148 | sb.append("issuer: " + Util.ByteArrayToString(issuer) +"\n"); |
| 149 | sb.append("version: " + version +"\n"); |
| 150 | sb.append("CACRLVersion: " + CACRLVersion +"\n"); |
| 151 | sb.append("signerCRLVersion: " + signerCRLVersion +"\n"); |
| 152 | sb.append("systemVersion: " + String.format("%8X",systemVersion) +"\n"); |
| 153 | sb.append("titleID: " + String.format("%8X",titleID) +"\n"); |
| 154 | sb.append("titleType: " + titleType +"\n"); |
| 155 | sb.append("groupID: " + groupID +"\n"); |
| 156 | sb.append("reserved: " + Util.ByteArrayToString(reserved) +"\n"); |
| 157 | sb.append("accessRights: " + accessRights +"\n"); |
| 158 | sb.append("titleVersion: " + titleVersion +"\n"); |
| 159 | sb.append("contentCount: " + contentCount +"\n"); |
| 160 | sb.append("bootIndex: " + bootIndex +"\n"); |
| 161 | sb.append("SHA2: " + Util.ByteArrayToString(SHA2) +"\n"); |
| 162 | sb.append("cert1: " + Util.ByteArrayToString(cert1) +"\n"); |
| 163 | sb.append("cert2: " + Util.ByteArrayToString(cert2) +"\n"); |
| 164 | sb.append("contentInfos: \n"); |
| 165 | |
| 166 | for(int i = 0; i<contents.length-1;i++){ |
| 167 | sb.append(" " + contentInfos[i] +"\n"); |
| 168 | } |
| 169 | sb.append("contents: \n"); |
| 170 | for(int i = 0; i<contents.length-1;i++){ |
| 171 | sb.append(" " + contents[i] +"\n"); |
| 172 | } |
| 173 | return sb.toString(); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Calculates the total size of the encrypted content file |
nothing calls this directly
no test coverage detected