Class ThirdPartyAuthorizationCode

  • All Implemented Interfaces:
    AuthenticationToken

    public class ThirdPartyAuthorizationCode
    extends Object
    implements AuthenticationToken
    Represents a token (or 'authorization_code' in oauth terms) issued by an external identity server. This is used in situations where Yamcs does not itself perform the authentication.

    The type of code is an implementation choice of the AuthModule. It may directly represent an externally issued token, although ideally the AuthModule should not expose such information, and instead manage an internal mapping via self-issued transient tokens.

    See SpnegoAuthModule for a representative example

    • Constructor Detail

      • ThirdPartyAuthorizationCode

        public ThirdPartyAuthorizationCode​(String code)
    • Method Detail

      • getPrincipal

        public String getPrincipal()