Class ProxyAuthenticationPrincipal
- java.lang.Object
-
- net.shibboleth.idp.authn.principal.ProxyAuthenticationPrincipal
-
- All Implemented Interfaces:
Principal,Predicate<ProfileRequestContext>
public class ProxyAuthenticationPrincipal extends Object implements Principal, Predicate<ProfileRequestContext>
Principal that wraps a set of proxied authentication authorities and any restrictions on subsequent re-use.The
Predicateinterface implements restriction logic that returns true iff the restrictions embedded in the object do NOT apply to the input request.- Since:
- 3.4.0
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>audiencesThe audiences.private Collection<String>authoritiesThe authorities.private IntegerproxyCountConstrains additional proxy hops.
-
Constructor Summary
Constructors Constructor Description ProxyAuthenticationPrincipal()Constructor.ProxyAuthenticationPrincipal(Collection<String> proxiedAuthorities)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Set<String>getAudiences()Get the mutable audience set, the set of relying parties for which proxying is permissable.Collection<String>getAuthorities()Get the mutable authority collection.StringgetName()IntegergetProxyCount()Gets the number of additional proxy hops that should be permitted.inthashCode()voidsetProxyCount(Integer count)Sets the number of additional proxy hops that should be permitted.booleantest(ProfileRequestContext input)StringtoString()
-
-
-
Field Detail
-
authorities
@Nonnull @NonnullElements private Collection<String> authorities
The authorities.
-
audiences
@Nonnull @NonnullElements private Set<String> audiences
The audiences.
-
proxyCount
@Nullable private Integer proxyCount
Constrains additional proxy hops.
-
-
Constructor Detail
-
ProxyAuthenticationPrincipal
public ProxyAuthenticationPrincipal()
Constructor.
-
ProxyAuthenticationPrincipal
public ProxyAuthenticationPrincipal(@Nonnull @NonnullElements Collection<String> proxiedAuthorities)
Constructor.- Parameters:
proxiedAuthorities- initial set of authorities
-
-
Method Detail
-
getAuthorities
@Nonnull @NonnullElements @Live public Collection<String> getAuthorities()
Get the mutable authority collection.- Returns:
- the authorities
-
getAudiences
@Nonnull @NonnullElements @Live public Set<String> getAudiences()
Get the mutable audience set, the set of relying parties for which proxying is permissable.- Returns:
- the audiences
-
getProxyCount
@Nullable @NonNegative public Integer getProxyCount()
Gets the number of additional proxy hops that should be permitted.A value of 0 disallows further proxying, while a null implies no limit.
- Returns:
- proxy count
- Since:
- 4.0.0
-
setProxyCount
public void setProxyCount(@Nullable @NonNegative Integer count)
Sets the number of additional proxy hops that should be permitted.A value of 0 disallows further proxying, while a null implies no limit.
- Parameters:
count- proxy count- Since:
- 4.0.0
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
-