Class AccessCookieService


  • public class AccessCookieService
    extends Service
    The client uses this service to obtain a cookie that will be used when interacting with content such as images, and with the access token service.

    There are several different interaction patterns in which the client will use this service, based on the user interface that must be rendered for the user, indicated by a profile URI. The client obtains the link to the access cookie service from a service block in a description of the protected resource.

    See http://iiif.io/api/auth/1.0/#access-cookie-service

    • Constructor Detail

      • AccessCookieService

        public AccessCookieService​(String identifier,
                                   AuthPattern pattern)
      • AccessCookieService

        public AccessCookieService​(URI identifier,
                                   AuthPattern pattern)
                            throws IllegalArgumentException
        Create a new access cookie service from an (optional) identifier and an authentication pattern.
        Parameters:
        identifier - (optional) identifier
        pattern - authentication pattern
        Throws:
        IllegalArgumentException - If the auth pattern is not "external" and no identifier is provided.
    • Method Detail

      • getConfirmLabelString

        public String getConfirmLabelString()
      • setConfirmLabel

        public void setConfirmLabel​(PropertyValue confirmLabel)
      • setConfirmLabel

        public void setConfirmLabel​(String label)
      • getHeaderString

        public String getHeaderString()
      • setHeader

        public void setHeader​(String header)
      • getDescriptionString

        public String getDescriptionString()
      • setDescription

        public void setDescription​(PropertyValue description)
      • setDescription

        public void setDescription​(String description)
      • getFailureHeaderString

        public String getFailureHeaderString()
      • setFailureHeader

        public void setFailureHeader​(PropertyValue failureHeader)
      • setFailureHeader

        public void setFailureHeader​(String failureHeader)
      • getFailureDescription

        public PropertyValue getFailureDescription()
      • getFailureDescriptionString

        public String getFailureDescriptionString()
      • setFailureDescription

        public void setFailureDescription​(PropertyValue failureDescription)
      • setFailureDescription

        public void setFailureDescription​(String failureDescription)