]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/dbObjects/User.java
add: user client certificate must have a verification within <=24 months
[gigi.git] / src / club / wpia / gigi / dbObjects / User.java
index 714bfc3a9122b95bcb1fad5bbd51a2f0ebb0678b..3d88aa6a49ec242b33f3c5b3092b779b4f3a370d 100644 (file)
@@ -338,6 +338,15 @@ public class User extends CertificateOwner {
         return false;
     }
 
+    public boolean isValidNameVerification(String name) {
+        for (Name n : getNames()) {
+            if (n.matches(name) && n.isValidVerification()) {
+                return true;
+            }
+        }
+        return false;
+    }
+
     public void updateDefaultEmail(EmailAddress newMail) throws GigiApiException {
         for (EmailAddress email : getEmails()) {
             if (email.getAddress().equals(newMail.getAddress())) {