All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.shiro.mgt.ThingRememberMeManager Maven / Gradle / Ivy

package xworker.shiro.mgt;

import org.apache.shiro.mgt.AbstractRememberMeManager;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.subject.SubjectContext;
import org.xmeta.ActionContext;
import org.xmeta.Thing;

public class ThingRememberMeManager extends AbstractRememberMeManager {
    Thing self;
    ActionContext actionContext;

    public ThingRememberMeManager(Thing self, ActionContext actionContext) {
        this.self = self;
        this.actionContext = actionContext;
    }

    @Override
    protected void forgetIdentity(Subject subject) {
        self.doAction("forgetIdentity", actionContext, "subject", subject);
    }

    @Override
    protected void rememberSerializedIdentity(Subject subject, byte[] serialized) {
        self.doAction("forgetIdentity", actionContext, "subject", subject, "serialized", serialized);
    }

    @Override
    protected byte[] getRememberedSerializedIdentity(SubjectContext subjectContext) {
        return self.doAction("forgetIdentity", actionContext, "subjectContext", subjectContext);
    }

    @Override
    public void forgetIdentity(SubjectContext subjectContext) {
        self.doAction("forgetSubjectContext", actionContext, "subjectContext", subjectContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy