Package net.shibboleth.idp.cas.service
Class Service
java.lang.Object
net.shibboleth.idp.cas.service.Service
- All Implemented Interfaces:
Principal
Container for metadata about a CAS service (i.e. relying party).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Proxy authorization flag.private EntityDescriptor
Source of service metadata based on SAML metadata.private RoleDescriptor
Role for service in SAML metadata.private final String
Group to which service belongs.private final String
Service URL.private final boolean
Indicates whether a service wants to receive SLO messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the SAML entity that is the source of service metadata.getGroup()
Get the group to which the service belongs.getName()
Get the service URL.Gets the role in the SAML metadata.boolean
Get whether proxying is authorized.boolean
Get whether the service wants to receive SLO message.void
Sets the SAML entity that is the source of service metadata.void
Sets the role in the SAML metadata.toString()
-
Field Details
-
serviceURL
Service URL. -
serviceGroup
Group to which service belongs. -
authorizedToProxy
private final boolean authorizedToProxyProxy authorization flag. -
singleLogoutParticipant
private final boolean singleLogoutParticipantIndicates whether a service wants to receive SLO messages. -
entityDescriptor
Source of service metadata based on SAML metadata. -
roleDescriptor
Role for service in SAML metadata.
-
-
Constructor Details
-
Service
Creates a new service that does not participate in SLO.- Parameters:
url
- CAS service URL.group
- Group to which service belongs.proxy
- True to authorize proxying, false otherwise.
-
Service
public Service(@Nonnull @NotEmpty String url, @Nullable @NotEmpty String group, boolean proxy, boolean wantsSLO) Creates a new service that MAY participate in SLO.- Parameters:
url
- CAS service URL.group
- Group to which service belongs.proxy
- True to authorize proxying, false otherwise.wantsSLO
- True to indicate the service wants to receive SLO messages, false otherwise.
-
-
Method Details
-
getName
Get the service URL. -
getGroup
Get the group to which the service belongs.- Returns:
- service group name
-
isAuthorizedToProxy
public boolean isAuthorizedToProxy()Get whether proxying is authorized.- Returns:
- true if proxying is authorized, false otherwise
-
isSingleLogoutParticipant
public boolean isSingleLogoutParticipant()Get whether the service wants to receive SLO message.- Returns:
- true to indicate the service wants to receive SLO messages, false otherwise
-
getEntityDescriptor
Gets the SAML entity that is the source of service metadata.- Returns:
- Entity descriptor for service defined in SAML metadata, otherwise null.
-
setEntityDescriptor
Sets the SAML entity that is the source of service metadata.- Parameters:
ed
- SAML entity descriptor.
-
getRoleDescriptor
Gets the role in the SAML metadata.- Returns:
- the role
- Since:
- 4.0.0
-
setRoleDescriptor
Sets the role in the SAML metadata.- Parameters:
role
- the role- Since:
- 4.0.0
-
toString
-