1 package org
.argeo
.security
.jackrabbit
.spring
;
3 import java
.security
.Principal
;
5 import org
.springframework
.security
.GrantedAuthority
;
7 /** Wraps a {@link GrantedAuthority} as a prin,cipal. */
8 public class GrantedAuthorityPrincipal
implements Principal
{
9 private final GrantedAuthority grantedAuthority
;
11 public GrantedAuthorityPrincipal(GrantedAuthority grantedAuthority
) {
13 this.grantedAuthority
= grantedAuthority
;
16 public String
getName() {
17 return grantedAuthority
.getAuthority();