blob: 409e7f61d961b63d3e87aff7741386e1a2dcdf62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.filter.security.misc;
import java.security.Principal;
/**
* @author bjorncs
*/
public class UserPrincipal implements Principal {
private final User user;
public UserPrincipal(User user) {
this.user = user;
}
@Override public String getName() { return user.name(); }
public User user() { return user; }
}
|