blob: 200542d358a10fb5c3e34114357c31f50afe1be9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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; }
}
|