X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Fauth%2FArgeoLoginContext.java;h=1a06486550130c52a015edacae54cfa9753ec603;hb=0c5fb19fc8447577255071899e445329da8be5e7;hp=3a536672a02b437a0bafa200f3736e3febe21adf;hpb=6ddb7b6b224a00344a182761e42b2241a721224f;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/auth/ArgeoLoginContext.java b/org.argeo.cms/src/org/argeo/cms/auth/ArgeoLoginContext.java index 3a536672a..1a0648655 100644 --- a/org.argeo.cms/src/org/argeo/cms/auth/ArgeoLoginContext.java +++ b/org.argeo.cms/src/org/argeo/cms/auth/ArgeoLoginContext.java @@ -28,6 +28,15 @@ public class ArgeoLoginContext extends LoginContext { currentContextClassLoader.remove(); } + public ArgeoLoginContext(String name, Subject subject) + throws LoginException { + super(setContextClassLoaderForName(name), subject); + // reset current context classloader + Thread.currentThread().setContextClassLoader( + currentContextClassLoader.get()); + currentContextClassLoader.remove(); + } + /** * Set the context classloader *