Class OAuthServiceEntity

java.lang.Object
com.peterphi.usermanager.db.entity.OAuthServiceEntity

@Entity(name="oauth_service") public class OAuthServiceEntity extends Object
  • Constructor Details

    • OAuthServiceEntity

      public OAuthServiceEntity()
  • Method Details

    • getId

      public String getId()
    • getOwner

      public UserEntity getOwner()
    • getName

      public String getName()
    • getEndpoints

      public String getEndpoints()
    • getClientSecret

      public String getClientSecret()
    • getRequiredRoleName

      public String getRequiredRoleName()
    • getRoles

      public Set<RoleEntity> getRoles()
    • getAccessKey

      public String getAccessKey()
      Access key, allows a User Manager Service to authenticate easily against another service.
      Returns:
    • getAccessKeySecondary

      public String getAccessKeySecondary()
      Access key (secondary key - due for retirement, the next rotation will remove this key, put the primary key in its place and generate a new primary key), allows a User Manager Service to authenticate easily against another service.
      Returns:
    • isEnabled

      public boolean isEnabled()
    • getCreated

      public org.joda.time.DateTime getCreated()
    • getUpdated

      public org.joda.time.DateTime getUpdated()
    • setId

      public void setId(String id)
    • setOwner

      public void setOwner(UserEntity owner)
    • setName

      public void setName(String name)
    • setEndpoints

      public void setEndpoints(String endpoints)
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • setRequiredRoleName

      public void setRequiredRoleName(String requiredRoleName)
    • setRoles

      public void setRoles(Set<RoleEntity> roles)
    • setAccessKey

      public void setAccessKey(String accessKey)
    • setAccessKeySecondary

      public void setAccessKeySecondary(String accessKeySecondary)
    • setEnabled

      public void setEnabled(boolean enabled)
    • setCreated

      public void setCreated(org.joda.time.DateTime created)
    • setUpdated

      public void setUpdated(org.joda.time.DateTime updated)
    • endpointsAsList

      public List<String> endpointsAsList()