-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add all missing apis for all objects, fix the response format (#62
) * 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
Showing
24 changed files
with
2,177 additions
and
6 deletions.
There are no files selected for viewing
418 changes: 418 additions & 0 deletions
418
src/main/java/org/casbin/casdoor/entity/CasdoorApplication.java
Large diffs are not rendered by default.
Oops, something went wrong.
155 changes: 155 additions & 0 deletions
155
src/main/java/org/casbin/casdoor/entity/CasdoorCert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + '\'' + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.