Class U2FRegisteredDevicesEndpoint


  • @Endpoint(id="u2fDevices",
              enableByDefault=false)
    public class U2FRegisteredDevicesEndpoint
    extends org.apereo.cas.web.BaseCasActuatorEndpoint
    Since:
    6.3.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.web.BaseCasActuatorEndpoint

        casProperties, MEDIA_TYPE_SPRING_BOOT_V2_JSON, MEDIA_TYPE_SPRING_BOOT_V3_JSON
    • Constructor Summary

      Constructors 
      Constructor Description
      U2FRegisteredDevicesEndpoint​(org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.springframework.beans.factory.ObjectProvider<org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository> u2fDeviceRepository)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String username)
      Delete.
      void delete​(java.lang.String username, java.lang.Long id)
      Delete.
      java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> fetchAll()
      Fetch all and provide collection.
      java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> fetchBy​(java.lang.String username)
      Fetch by username and provide collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • U2FRegisteredDevicesEndpoint

        public U2FRegisteredDevicesEndpoint​(org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                            org.springframework.beans.factory.ObjectProvider<org.apereo.cas.adaptors.u2f.storage.U2FDeviceRepository> u2fDeviceRepository)
    • Method Detail

      • fetchAll

        @ReadOperation(produces="application/json")
        public java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> fetchAll()
        Fetch all and provide collection.
        Returns:
        the collection
      • fetchBy

        @ReadOperation(produces="application/json")
        public java.util.Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration> fetchBy​(@Selector
                                                                                                                 java.lang.String username)
        Fetch by username and provide collection.
        Parameters:
        username - the username
        Returns:
        the collection
      • delete

        @DeleteOperation
        public void delete​(@Selector
                           java.lang.String username)
        Delete.
        Parameters:
        username - the username
      • delete

        @DeleteOperation
        public void delete​(@Selector
                           java.lang.String username,
                           @Selector
                           java.lang.Long id)
        Delete.
        Parameters:
        username - the username
        id - the id