javacommons/security/javasrc/com/nokia/mj/impl/security/midp/storage/SecurityStorage.java
equal
deleted
inserted
replaced
738 null, StorageAttribute.NULL_TYPE)); |
738 null, StorageAttribute.NULL_TYPE)); |
739 } |
739 } |
740 if (data.getRootHashValue() != null |
740 if (data.getRootHashValue() != null |
741 && data.getRootHashValue().length() > 0) |
741 && data.getRootHashValue().length() > 0) |
742 { |
742 { |
|
743 int rootHashLength = (data.getRootHashValue().length() > 8 |
|
744 ? 8 : data.getRootHashValue().length()); |
743 entry.addAttribute(new StorageAttribute( |
745 entry.addAttribute(new StorageAttribute( |
744 StorageNames.CERT_HASH, |
746 StorageNames.CERT_HASH, |
745 data.getRootHashValue())); |
747 data.getRootHashValue().substring(0, |
|
748 rootHashLength))); |
746 } |
749 } |
747 String validCerts = encodeValidatedChainIndexes( |
750 String validCerts = encodeValidatedChainIndexes( |
748 data.getValidatedChainIndexes()); |
751 data.getValidatedChainIndexes()); |
749 if (validCerts != null && validCerts.length() > 0) |
752 if (validCerts != null && validCerts.length() > 0) |
750 { |
753 { |