diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/util/UserId.java b/pgpainless-core/src/main/java/org/pgpainless/key/util/UserId.java index 6dca06b5..3c43b92c 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/util/UserId.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/util/UserId.java @@ -69,6 +69,24 @@ public final class UserId implements CharSequence { } } + /** + * Parse a {@link UserId} from free-form text,
name-addror
mailboxstring and split it + * up into its components. + * Example inputs for this method: + *
john@pgpainless.org
<john@pgpainless.org>
John Doe
John Doe <john@pgpainless.org>
John Doe (work email) <john@pgpainless.org>