예제 #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((decryptionKey == null) ? 0 : decryptionKey.hashCode());
   result = prime * result + ((encryptedCMSData == null) ? 0 : encryptedCMSData.hashCode());
   return result;
 }
예제 #2
0
 @Override
 public PayloadRequest getBlankedClone() {
   PayloadDecryptCMSRequest result = new PayloadDecryptCMSRequest();
   List<String> data = new ArrayList<>();
   for (String current : encryptedCMSData) data.add(Logger.isDebugEnabled() ? current : "*****");
   result.encryptedCMSData = data;
   result.decryptionKey = decryptionKey.getBlankedClone();
   return result;
 }
예제 #3
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   PayloadDecryptCMSRequest other = (PayloadDecryptCMSRequest) obj;
   if (decryptionKey == null) {
     if (other.decryptionKey != null) return false;
   } else if (!decryptionKey.equals(other.decryptionKey)) return false;
   if (encryptedCMSData == null) {
     if (other.encryptedCMSData != null) return false;
   } else if (!encryptedCMSData.equals(other.encryptedCMSData)) return false;
   return true;
 }