@@ -43,10 +43,6 @@ public class Identity {
4343
4444 private Logger logger = null ;
4545
46-
47-
48-
49-
5046 /**
5147 * Creates an Identity instance.this type of the instance can
5248 * only be used to store server certificate identity.
@@ -120,20 +116,14 @@ public Identity(MerchantConfig merchantConfig,X509Certificate x509Certificate, P
120116 setUpMerchant ();
121117 }
122118
123- public boolean isValid (File keyFile )
124- {
125-
126- if (this .lastModifiedDate == keyFile .lastModified ()){
127-
128- logger .log (Logger .LT_INFO , "key files not yet changed" );
129- }
130- //boolean b=this.lastModifiedDate == keyFile.lastModified();
131- //String p=String.valueOf(b);
132- //logger.log(Logger.LT_INFO,"Check the merchant certificate is new " +p);
133- //return b;
134- //logger.log(Logger.LT_INFO, "Could not load the custom HTTP class ");
135- return this .lastModifiedDate == keyFile .lastModified ();
136- }
119+ public boolean isValid (File keyFile ) {
120+
121+ if (this .lastModifiedDate == keyFile .lastModified ()) {
122+
123+ logger .log (Logger .LT_INFO , "key files not yet changed" );
124+ }
125+ return this .lastModifiedDate == keyFile .lastModified ();
126+ }
137127
138128 private void setUpMerchant () throws SignException {
139129 if (serialNumber == null && x509Cert != null ) {
@@ -273,5 +263,4 @@ public String toString() {
273263 + serialNumber + ",expiration=" + expireStr + " }" ;
274264 }
275265
276-
277266}
0 commit comments