Example usage for org.springframework.security.oauth2.provider.approval Approval setScope

List of usage examples for org.springframework.security.oauth2.provider.approval Approval setScope

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider.approval Approval setScope.

Prototype

public void setScope(String scope) 

Source Link

Usage

From source file:oauth2.authentication.approvals.ApprovalServiceImpl.java

static oauth2.entities.Approval toEntity(Approval approval) {
    oauth2.entities.Approval entity = new oauth2.entities.Approval();
    entity.setUserId(approval.getUserId());
    entity.setClientId(approval.getClientId());
    entity.setScope(approval.getScope());
    entity.setStatus(approval.getStatus());
    entity.setExpiresAt(toInstant(approval.getExpiresAt()));
    entity.setLastUpdateAt(toInstant(approval.getLastUpdatedAt()));
    return entity;
}