Selaa lähdekoodia

Add method getPort in ApacheDSContainer

Fixes gh-7236
Eddú Meléndez 6 vuotta sitten
vanhempi
commit
76718c4db6

+ 4 - 0
ldap/src/main/java/org/springframework/security/ldap/server/ApacheDSContainer.java

@@ -186,6 +186,10 @@ public class ApacheDSContainer implements InitializingBean, DisposableBean, Life
 		this.port = port;
 	}
 
+	public int getPort() {
+		return this.port;
+	}
+
 	/**
 	 * If set to {@code true} will enable LDAP over SSL (LDAPs). If set to {@code true}
 	 * {@link ApacheDSContainer#setCertificatePassord(String)} must be set as well.