javax.security.auth.message.callback
Class DistinguishedPrincipalCallback

java.lang.Object
  extended by javax.security.auth.message.callback.DistinguishedPrincipalCallback
All Implemented Interfaces:
Callback

public class DistinguishedPrincipalCallback
extends Object
implements Callback

Callback for setting the container?s caller (or Remote user) principal.

Since:
May 11, 2006
Version:
$Revision: 45179 $
Author:
Anil Saldhana, Charlie Lai, Ron Monzillo (Javadoc for JSR-196)

Constructor Summary
DistinguishedPrincipalCallback(Subject subject, Principal principal)
          Create a new DistinguishedPrincipalCallback.
 
Method Summary
 Principal getPrincipal()
          Get the principal.
 Subject getSubject()
          Get the Subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistinguishedPrincipalCallback

public DistinguishedPrincipalCallback(Subject subject,
                                      Principal principal)
Create a new DistinguishedPrincipalCallback.

Parameters:
subject - the Subject in which the container will distinguish the principal
principal - the Principal that will be distinguished.
Method Detail

getPrincipal

public Principal getPrincipal()
Get the principal.

Returns:
the principal.

getSubject

public Subject getSubject()
Get the Subject.

Returns:
the subject.


Copyright © 2008 JBoss Inc.. All Rights Reserved.