Class U2FRegisteredDevicesEndpoint

java.lang.Object
org.apereo.cas.web.BaseCasActuatorEndpoint
org.apereo.cas.adaptors.u2f.web.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_CAS_YAML, 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

    Modifier and Type
    Method
    Description
    void
    delete(String username)
    Delete.
    void
    delete(String username, Long id)
    Delete.
    Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
    Fetch all and provide collection.
    Collection<? extends org.apereo.cas.adaptors.u2f.storage.U2FDeviceRegistration>
    fetchBy(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 Details

    • U2FRegisteredDevicesEndpoint

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

    • fetchAll

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

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

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

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