Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.model.core.auth

File Keypair.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart5.png
36% of files have more coverage

Code metrics

0
5
6
1
38
28
6
1.2
0.83
6
1

Classes

Class Line # Actions
Keypair 10 5 6
0.4545454745.5%
 

Contributing tests

This file is covered by 2 tests. .

Source view

1    package io.sunshower.model.core.auth;
2   
3    import io.sunshower.model.core.Schemata;
4    import javax.persistence.Basic;
5    import javax.persistence.Entity;
6    import javax.persistence.Table;
7   
8    @Entity
9    @Table(name = "KEYPAIR_CREDENTIAL", schema = Schemata.SUNSHOWER)
 
10    public class Keypair extends Credential {
11   
12    @Basic private String key;
13   
14    @Basic private String secret;
15   
 
16  2 toggle public Keypair() {}
17   
 
18  0 toggle public String getKey() {
19  0 return key;
20    }
21   
 
22  2 toggle public void setKey(String key) {
23  2 this.key = key;
24    }
25   
 
26  0 toggle public String getSecret() {
27  0 return secret;
28    }
29   
 
30  2 toggle public void setSecret(String secret) {
31  2 this.secret = secret;
32    }
33   
 
34  0 toggle @Override
35    public CredentialType getType() {
36  0 return CredentialType.KeyPair;
37    }
38    }