/** * Obtain the {@link Subject} used to create this caller. * * This method will always return {@code null} as this is now backed by a {@link SecurityIdentity} this method remains * however for binary compatibility. * * @return The {@link Subject} used to create this caller. */ public Subject getSubject() { checkPermission(ControllerPermission.GET_CALLER_SUBJECT); return null; }
/** * Obtain the {@link Subject} used to create this caller. * * This method will always return {@code null} as this is now backed by a {@link SecurityIdentity} this method remains * however for binary compatibility. * * @return The {@link Subject} used to create this caller. */ public Subject getSubject() { checkPermission(ControllerPermission.GET_CALLER_SUBJECT); return null; }
/** * Obtain the {@link SecurityIdentity} to create this {@link Caller}. * * @return the {@link SecurityIdentity} to create this {@link Caller}. */ public SecurityIdentity getSecurityIdentity() { checkPermission(ControllerPermission.GET_CALLER_SECURITY_IDENTITY); return securityIdentity; }
/** * Obtain the {@link Subject} used to create this caller. * * @return The {@link Subject} used to create this caller. */ public Subject getSubject() { checkPermission(GET_SUBJECT_PERMISSION); return subject; }
/** * Obtain the {@link SecurityIdentity} to create this {@link Caller}. * * @return the {@link SecurityIdentity} to create this {@link Caller}. */ public SecurityIdentity getSecurityIdentity() { checkPermission(ControllerPermission.GET_CALLER_SECURITY_IDENTITY); return securityIdentity; }
public static Caller createCaller(final SecurityIdentity securityIdentity) { checkPermission(ControllerPermission.CREATE_CALLER); return new Caller(securityIdentity); }
public static Caller createCaller(final SecurityIdentity securityIdentity) { checkPermission(ControllerPermission.CREATE_CALLER); return new Caller(securityIdentity); }
public static Caller createCaller(final Subject subject) { checkPermission(CREATE_CALLER_PERMISSION); return new Caller(subject); }