X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2Fnaming%2FLdapAttrs.java;h=43cfe03b4cc76d7bd1b6223f698a43f8eaaa4141;hb=4d2d8d8003f6b2afb2f207a1aa7bb205929559aa;hp=7dcba0992b85f15e37e4f2be0a054b0f6455ece9;hpb=b71546ddc74d6ca49d252806aafd491c75dfe1fb;p=lgpl%2Fargeo-commons.git
diff --git a/org.argeo.util/src/org/argeo/util/naming/LdapAttrs.java b/org.argeo.util/src/org/argeo/util/naming/LdapAttrs.java
index 7dcba0992..43cfe03b4 100644
--- a/org.argeo.util/src/org/argeo/util/naming/LdapAttrs.java
+++ b/org.argeo.util/src/org/argeo/util/naming/LdapAttrs.java
@@ -1,5 +1,7 @@
package org.argeo.util.naming;
+import java.util.function.Supplier;
+
/**
* Standard LDAP attributes as per:
* - Standard LDAP
@@ -7,7 +9,7 @@ package org.argeo.util.naming;
* "https://github.com/krb5/krb5/blob/master/src/plugins/kdb/ldap/libkdb_ldap/kerberos.schema">Kerberos
* LDAP (partial)
*/
-public enum LdapAttrs implements SpecifiedName {
+public enum LdapAttrs implements SpecifiedName, Supplier {
/** */
uid("0.9.2342.19200300.100.1.1", "RFC 4519"),
/** */
@@ -315,11 +317,17 @@ public enum LdapAttrs implements SpecifiedName {
return "ldap";
}
+ @Deprecated
public String property() {
- return qualified();
+ return get();
}
+ @Deprecated
public String qualified() {
+ return get();
+ }
+
+ public String get() {
String prefix = getPrefix();
return prefix != null ? prefix + ":" + name() : name();
}