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 Predicate
interface 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
FieldsModifier and TypeFieldDescriptionThe audiences.private Collection<String>
The authorities.private Integer
Constrains additional proxy hops. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ProxyAuthenticationPrincipal
(Collection<String> proxiedAuthorities) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the mutable audience set, the set of relying parties for which proxying is permissable.Get the mutable authority collection.getName()
Gets the number of additional proxy hops that should be permitted.int
hashCode()
void
setProxyCount
(Integer count) Sets the number of additional proxy hops that should be permitted.boolean
test
(ProfileRequestContext input) toString()
-
Field Details
-
authorities
The authorities. -
audiences
The audiences. -
proxyCount
Constrains additional proxy hops.
-
-
Constructor Details
-
ProxyAuthenticationPrincipal
public ProxyAuthenticationPrincipal()Constructor. -
ProxyAuthenticationPrincipal
public ProxyAuthenticationPrincipal(@Nonnull @NonnullElements Collection<String> proxiedAuthorities) Constructor.- Parameters:
proxiedAuthorities
- initial set of authorities
-
-
Method Details
-
getName
-
getAuthorities
Get the mutable authority collection.- Returns:
- the authorities
-
getAudiences
Get the mutable audience set, the set of relying parties for which proxying is permissable.- Returns:
- the audiences
-
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
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
- Specified by:
test
in interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode() -
equals
-
toString
-