
javax.security.auth.message.callback.CallerPrincipalCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jboss-jaspi-api_1.0_spec Show documentation
Show all versions of jboss-jaspi-api_1.0_spec Show documentation
JSR-196: Java Authentication SPI for Containers 1.0 API
The newest version!
package javax.security.auth.message.callback;
import java.security.Principal;
import javax.security.auth.Subject;
import javax.security.auth.callback.Callback;
//$Id$
/**
*
* @author [email protected]
* @since Jul 11, 2007
* @version $Revision$
*/
public class CallerPrincipalCallback implements Callback
{
private Subject subject;
private Principal principal;
private String name;
public CallerPrincipalCallback(javax.security.auth.Subject s, java.security.Principal p)
{
this.subject = s;
this.principal = p;
}
public CallerPrincipalCallback(javax.security.auth.Subject s, java.lang.String n)
{
this.subject = s;
this.name = n;
}
public String getName()
{
return this.name;
}
public Principal getPrincipal()
{
return this.principal;
}
public Subject getSubject()
{
return this.subject;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy