cloud.piranha

Class DefaultAuthenticatedIdentity

  • All Implemented Interfaces:
    AuthenticatedIdentity, Principal


    public class DefaultAuthenticatedIdentity
    extends Object
    implements AuthenticatedIdentity
    Default implementation of AuthenticatedIdentity.

    This implementation is an immutable structure, with a facility to store it in TLS. It's the responsibility of the context, e.g. the HTTP request handler, to remove the identity from TLS at the end of the context (e.g. end of the HTTP request), or at any other appropriate time (e.g. when logging out mid-request).

    Author:
    Arjan Tijms

Copyright © 2020. All rights reserved.