/** * Create an empty ad-hoc identity. The identity will have no authorization information and no credentials associated * with it. * * @param name the identity name (must not be {@code null}) * @return the ad-hoc identity */ public SecurityIdentity createAdHocIdentity(String name) { checkNotNullParam("name", name); return createAdHocIdentity(new NamePrincipal(name)); }
newIdentity = securityDomain.createAdHocIdentity(runAsPrincipal); } else { try {
identity = securityDomain.createAdHocIdentity(callerPrincipal);
authorizedIdentity = securityDomain.createAdHocIdentity(callerPrincipal);
/** * Create an empty ad-hoc identity. The identity will have no authorization information and no credentials associated * with it. * * @param name the identity name (must not be {@code null}) * @return the ad-hoc identity */ public SecurityIdentity createAdHocIdentity(String name) { checkNotNullParam("name", name); return createAdHocIdentity(new NamePrincipal(name)); }
/** * Create an empty ad-hoc identity. The identity will have no authorization information and no credentials associated * with it. * * @param name the identity name (must not be {@code null}) * @return the ad-hoc identity */ public SecurityIdentity createAdHocIdentity(String name) { checkNotNullParam("name", name); return createAdHocIdentity(new NamePrincipal(name)); }
/** * Create an empty ad-hoc identity. The identity will have no authorization information and no credentials associated * with it. * * @param name the identity name (must not be {@code null}) * @return the ad-hoc identity */ public SecurityIdentity createAdHocIdentity(String name) { checkNotNullParam("name", name); return createAdHocIdentity(new NamePrincipal(name)); }
public static SecurityIdentity convertToSecurityIdentity(Subject subject, Principal principal, SecurityDomain domain, String roleCategory) { SecurityIdentity identity = domain.createAdHocIdentity(principal);
public static SecurityIdentity convertToSecurityIdentity(Subject subject, Principal principal, SecurityDomain domain, String roleCategory) { SecurityIdentity identity = domain.createAdHocIdentity(principal);
newIdentity = securityDomain.createAdHocIdentity(runAsPrincipal); } else { try {
identity = securityDomain.createAdHocIdentity(callerPrincipal);
authorizedIdentity = securityDomain.createAdHocIdentity(callerPrincipal);
authorizedIdentity = securityDomain.createAdHocIdentity(callerPrincipal);