- java.lang.Object
-
- javax.security.auth.message.callback.CallerPrincipalCallback
-
-
Constructor Summary
Constructors Constructor and Description CallerPrincipalCallback(Subject s, Principal p)
Create a CallerPrincipalCallback to set the container's representation of the caller principalCallerPrincipalCallback(Subject s, String n)
Create a CallerPrincipalCallback to set the container's representation of the caller principal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getName()
Get the caller principal name.Principal
getPrincipal()
Get the caller principal.Subject
getSubject()
Get the Subject in which the handler will distinguish the caller principal
-
-
-
Constructor Detail
-
CallerPrincipalCallback
public CallerPrincipalCallback(Subject s, Principal p)
Create a CallerPrincipalCallback to set the container's representation of the caller principal- Parameters:
s
- The Subject in which the container will distinguish the caller identity.p
- The Principal that will be distinguished as the caller principal. This value may be null.The CallbackHandler must use the argument Principal to establish the caller principal associated with the invocation being processed by the container. When the argument Principal is null, the handler must establish the container's representation of the unauthenticated caller principal. The handler may perform principal mapping of non-null argument Principal values, but it must be possible to configure the handler such that it establishes the non-null argument Principal as the caller principal.
-
CallerPrincipalCallback
public CallerPrincipalCallback(Subject s, String n)
Create a CallerPrincipalCallback to set the container's representation of the caller principal.- Parameters:
s
- The Subject in which the container will distinguish the caller identity.n
- The String value that will be returned when getName() is called on the principal established as the caller principal or null.The CallbackHandler must use the n argument to establish the caller principal associated with the invocation being processed by the container. When the n argument is null, the handler must establish the container's representation of the unauthenticated caller principal (which may or may not be equal to null, depending on the requirements of the container type ). The handler may perform principal mapping of non-null values of n, but it must be possible to configure the handler such that it establishes the non-null argument value as the value returned when getName is called on the established principal.
-
-
Method Detail
-
getSubject
public Subject getSubject()
Get the Subject in which the handler will distinguish the caller principal- Returns:
- The subject.
-
getPrincipal
public Principal getPrincipal()
Get the caller principal.- Returns:
- The principal or null.
When the values returned by this method and the getName methods are null, the handler must establish the container's representation of the unauthenticated caller principal within the Subject.
-
getName
public String getName()
Get the caller principal name.- Returns:
- The principal name or null.
When the values returned by this method and the getPrincipal methods are null, the handler must establish the container's representation of the unauthenticated caller principal within the Subject.
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/security/auth/message/callback/CallerPrincipalCallback.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.