com.feingto.cloud.dto.oauth.ClientDetailDTO Maven / Gradle / Ivy
package com.feingto.cloud.dto.oauth;
import com.feingto.cloud.domain.BaseEntity;
import lombok.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* 密钥信息
*
* @author longfei
*/
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class ClientDetailDTO extends BaseEntity {
private static final long serialVersionUID = -4708933306582463703L;
private String name;// 密钥名称
private String clientId;// 密钥Key
private String clientSecret;// 密钥密码
private Integer accessTokenValiditySeconds;// AccessToken有效秒数(1 hour = 3600 s)
private Integer refreshTokenValiditySeconds;// RefreshToken有效秒数(30 days = 2592000s)
@Builder.Default
private Set grantTypes = new LinkedHashSet<>();
@Builder.Default
private Set scopes = new LinkedHashSet<>();
@Builder.Default
private Set autoScopes = new LinkedHashSet<>();
@Builder.Default
private Set resourceIds = new LinkedHashSet<>();
private String redirectUris;
@Builder.Default
private Set authorities = new LinkedHashSet<>();
@Builder.Default
private Set apis = new LinkedHashSet<>();
private ClientDetailLimitDTO clientLimit;
@Builder.Default
private Collection accessTokens = new ArrayList<>();
private String username;
@Builder.Default
private boolean autoApproveAll = false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy