Package net.shibboleth.idp.cas.service
Class Service
- java.lang.Object
-
- net.shibboleth.idp.cas.service.Service
-
-
Field Summary
Fields Modifier and Type Field Description private booleanauthorizedToProxyProxy authorization flag.private org.opensaml.saml.saml2.metadata.EntityDescriptorentityDescriptorSource of service metadata based on SAML metadata.private org.opensaml.saml.saml2.metadata.RoleDescriptorroleDescriptorRole for service in SAML metadata.private StringserviceGroupGroup to which service belongs.private StringserviceURLService URL.private booleansingleLogoutParticipantIndicates whether a service wants to receive SLO messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.saml.saml2.metadata.EntityDescriptorgetEntityDescriptor()Gets the SAML entity that is the source of service metadata.StringgetGroup()Get the group to which the service belongs.StringgetName()Get the service URL.org.opensaml.saml.saml2.metadata.RoleDescriptorgetRoleDescriptor()Gets the role in the SAML metadata.booleanisAuthorizedToProxy()Get whether proxying is authorized.booleanisSingleLogoutParticipant()Get whether the service wants to receive SLO message.voidsetEntityDescriptor(org.opensaml.saml.saml2.metadata.EntityDescriptor ed)Sets the SAML entity that is the source of service metadata.voidsetRoleDescriptor(org.opensaml.saml.saml2.metadata.RoleDescriptor role)Sets the role in the SAML metadata.StringtoString()
-
-
-
Field Detail
-
serviceURL
@Nonnull @NotEmpty private final String serviceURL
Service URL.
-
serviceGroup
@Nullable private final String serviceGroup
Group to which service belongs.
-
authorizedToProxy
private final boolean authorizedToProxy
Proxy authorization flag.
-
singleLogoutParticipant
private final boolean singleLogoutParticipant
Indicates whether a service wants to receive SLO messages.
-
entityDescriptor
@Nullable private transient org.opensaml.saml.saml2.metadata.EntityDescriptor entityDescriptor
Source of service metadata based on SAML metadata.
-
roleDescriptor
@Nullable private transient org.opensaml.saml.saml2.metadata.RoleDescriptor roleDescriptor
Role for service in SAML metadata.
-
-
Constructor Detail
-
Service
public Service(@Nonnull @NotEmpty String url, @Nullable @NotEmpty String group, boolean proxy)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 Detail
-
getGroup
@Nullable public String 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
@Nullable public org.opensaml.saml.saml2.metadata.EntityDescriptor getEntityDescriptor()
Gets the SAML entity that is the source of service metadata.- Returns:
- Entity descriptor for service defined in SAML metadata, otherwise null.
-
setEntityDescriptor
public void setEntityDescriptor(@Nullable org.opensaml.saml.saml2.metadata.EntityDescriptor ed)Sets the SAML entity that is the source of service metadata.- Parameters:
ed- SAML entity descriptor.
-
getRoleDescriptor
@Nullable public org.opensaml.saml.saml2.metadata.RoleDescriptor getRoleDescriptor()
Gets the role in the SAML metadata.- Returns:
- the role
- Since:
- 4.0.0
-
setRoleDescriptor
public void setRoleDescriptor(@Nullable org.opensaml.saml.saml2.metadata.RoleDescriptor role)Sets the role in the SAML metadata.- Parameters:
role- the role- Since:
- 4.0.0
-
-