Skip to content

Commit

Permalink
feat: add all missing apis for all objects, fix the response format (#62
Browse files Browse the repository at this point in the history
)

* feat: add all missing apis for all objects, fix the response format

* feat: add all missing apis for all objects, fix the response format
  • Loading branch information
D1zzzY1 authored Aug 18, 2023
1 parent a19e85b commit 3115906
Show file tree
Hide file tree
Showing 24 changed files with 2,177 additions and 6 deletions.
418 changes: 418 additions & 0 deletions src/main/java/org/casbin/casdoor/entity/CasdoorApplication.java

Large diffs are not rendered by default.

155 changes: 155 additions & 0 deletions src/main/java/org/casbin/casdoor/entity/CasdoorCert.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
// Copyright 2023 The casbin Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.casbin.casdoor.entity;

import java.io.Serializable;

public class CasdoorCert implements Serializable {
private String owner;
private String name;
private String createdTime;
private String displayName;
private String scope;
private String type;
private String cryptoAlgorithm;
private int bitSize;
private int expireInYears;
private String certificate;
private String privateKey;
private String authorityPublicKey;
private String authorityRootPublicKey;

public String getOwner() {
return owner;
}

public void setOwner(String owner) {
this.owner = owner;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getCreatedTime() {
return createdTime;
}

public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}

public String getDisplayName() {
return displayName;
}

public void setDisplayName(String displayName) {
this.displayName = displayName;
}

public String getScope() {
return scope;
}

public void setScope(String scope) {
this.scope = scope;
}

public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}

public String getCryptoAlgorithm() {
return cryptoAlgorithm;
}

public void setCryptoAlgorithm(String cryptoAlgorithm) {
this.cryptoAlgorithm = cryptoAlgorithm;
}

public int getBitSize() {
return bitSize;
}

public void setBitSize(int bitSize) {
this.bitSize = bitSize;
}

public int getExpireInYears() {
return expireInYears;
}

public void setExpireInYears(int expireInYears) {
this.expireInYears = expireInYears;
}

public String getCertificate() {
return certificate;
}

public void setCertificate(String certificate) {
this.certificate = certificate;
}

public String getPrivateKey() {
return privateKey;
}

public void setPrivateKey(String privateKey) {
this.privateKey = privateKey;
}

public String getAuthorityPublicKey() {
return authorityPublicKey;
}

public void setAuthorityPublicKey(String authorityPublicKey) {
this.authorityPublicKey = authorityPublicKey;
}

public String getAuthorityRootPublicKey() {
return authorityRootPublicKey;
}

public void setAuthorityRootPublicKey(String authorityRootPublicKey) {
this.authorityRootPublicKey = authorityRootPublicKey;
}

@Override
public String toString() {
return "CasdoorCert{" +
"owner='" + owner + '\'' +
", name='" + name + '\'' +
", createdTime='" + createdTime + '\'' +
", displayName='" + displayName + '\'' +
", scope='" + scope + '\'' +
", type='" + type + '\'' +
", cryptoAlgorithm='" + cryptoAlgorithm + '\'' +
", bitSize=" + bitSize +
", expireInYears=" + expireInYears +
", certificate='" + certificate + '\'' +
", privateKey='" + privateKey + '\'' +
", authorityPublicKey='" + authorityPublicKey + '\'' +
", authorityRootPublicKey='" + authorityRootPublicKey + '\'' +
'}';
}
}
Loading

0 comments on commit 3115906

Please # to comment.