* Sets the security domain. *
* * @param domain a {@code String} representing the security domain. */ public void setSecurityDomain(String domain); /** * Subject Info * * @see SecurityContextUtil#getSubject() * @see SecurityContextUtil#createSubjectInfo(java.security.Principal, Object, javax.security.auth.Subject) */ SubjectInfo getSubjectInfo(); /** * Subject Info * * @see SecurityContextUtil#getSubject() * @see SecurityContextUtil#createSubjectInfo(java.security.Principal, Object, javax.security.auth.Subject) */ void setSubjectInfo(SubjectInfo si); /** * RunAs that is being propagated into this context * by an external context * {@link #setIncomingRunAs(RunAs)} */ public RunAs getIncomingRunAs(); /** * Set the RunAs that is propagating into this * context. * @param runAs The RunAs */ public void setIncomingRunAs(RunAs runAs); /** * RunAs Representation * * {@link #setOutgoingRunAs(RunAs)} */ public RunAs getOutgoingRunAs(); /** * Set the current RunAs for the security context that will be * propagated out to other security context. * * RunAs coming into this security context needs to be done * from SecurityContextUtil.getCallerRunAs/setCallerRunAs * * @param runAs */ public void setOutgoingRunAs(RunAs runAs); /** * Return a utility that is a facade to the internal * storage mechanism of the Security Context * * This utility can be used to store information like * roles etc in an implementation specific way * @return */ public SecurityContextUtil getUtil(); }