org.eclipse.stardust.engine.core.compatibility.spi.security
Interface PrincipalNameProvider

All Known Implementing Classes:
DefaultPrincipalNameProvider

public interface PrincipalNameProvider

Author:
born

Method Summary
 String getName(Principal principal)
          Provides the name for a given principal.
 

Method Detail

getName

String getName(Principal principal)
Provides the name for a given principal. Default implementation would be to return principal.getName(). It is possible to test for a certain implementation and use method fo these implementation in order to return a more specific name for the given principal.

Parameters:
principal - the principal
Returns:
the name of the principal. Not allowed to be null.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.