mitreid-connect
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.uma.model.Policy クラス
org.mitre.uma.model.Policy 連携図
Collaboration graph

公開メンバ関数

Long getId ()
 
void setId (Long id)
 
String getName ()
 
void setName (String name)
 
Collection< ClaimgetClaimsRequired ()
 
void setClaimsRequired (Collection< Claim > claimsRequired)
 
Set< String > getScopes ()
 
void setScopes (Set< String > scopes)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

非公開変数類

Long id
 
String name
 
Collection< ClaimclaimsRequired
 
Set< String > scopes
 

詳解

A set of claims required to fulfill a given permission.

著者
jricher

関数詳解

◆ equals()

boolean org.mitre.uma.model.Policy.equals ( Object  obj)
inline
151  {
152  if (this == obj) {
153  return true;
154  }
155  if (obj == null) {
156  return false;
157  }
158  if (getClass() != obj.getClass()) {
159  return false;
160  }
161  Policy other = (Policy) obj;
162  if (claimsRequired == null) {
163  if (other.claimsRequired != null) {
164  return false;
165  }
166  } else if (!claimsRequired.equals(other.claimsRequired)) {
167  return false;
168  }
169  if (id == null) {
170  if (other.id != null) {
171  return false;
172  }
173  } else if (!id.equals(other.id)) {
174  return false;
175  }
176  if (name == null) {
177  if (other.name != null) {
178  return false;
179  }
180  } else if (!name.equals(other.name)) {
181  return false;
182  }
183  if (scopes == null) {
184  if (other.scopes != null) {
185  return false;
186  }
187  } else if (!scopes.equals(other.scopes)) {
188  return false;
189  }
190  return true;
191  }
String name
Definition: Policy.java:48
Set< String > scopes
Definition: Policy.java:50
Collection< Claim > claimsRequired
Definition: Policy.java:49
boolean equals(Object obj)
Definition: Policy.java:151

◆ getClaimsRequired()

Collection<Claim> org.mitre.uma.model.Policy.getClaimsRequired ( )
inline
戻り値
the claimsRequired
94  {
95  return claimsRequired;
96  }
Collection< Claim > claimsRequired
Definition: Policy.java:49

◆ getId()

Long org.mitre.uma.model.Policy.getId ( )
inline
戻り値
the id
58  {
59  return id;
60  }
Long id
Definition: Policy.java:47

◆ getName()

String org.mitre.uma.model.Policy.getName ( )
inline
戻り値
the name
74  {
75  return name;
76  }
String name
Definition: Policy.java:48

◆ getScopes()

Set<String> org.mitre.uma.model.Policy.getScopes ( )
inline
戻り値
the scopes
114  {
115  return scopes;
116  }
Set< String > scopes
Definition: Policy.java:50

◆ hashCode()

int org.mitre.uma.model.Policy.hashCode ( )
inline
137  {
138  final int prime = 31;
139  int result = 1;
140  result = prime * result + ((claimsRequired == null) ? 0 : claimsRequired.hashCode());
141  result = prime * result + ((id == null) ? 0 : id.hashCode());
142  result = prime * result + ((name == null) ? 0 : name.hashCode());
143  result = prime * result + ((scopes == null) ? 0 : scopes.hashCode());
144  return result;
145  }
String name
Definition: Policy.java:48
Set< String > scopes
Definition: Policy.java:50
int hashCode()
Definition: Policy.java:137
Collection< Claim > claimsRequired
Definition: Policy.java:49

◆ setClaimsRequired()

void org.mitre.uma.model.Policy.setClaimsRequired ( Collection< Claim claimsRequired)
inline
引数
claimsRequiredthe claimsRequired to set
101  {
103  }
Collection< Claim > claimsRequired
Definition: Policy.java:49

◆ setId()

void org.mitre.uma.model.Policy.setId ( Long  id)
inline
引数
idthe id to set
65  {
66  this.id = id;
67  }
Long id
Definition: Policy.java:47

◆ setName()

void org.mitre.uma.model.Policy.setName ( String  name)
inline
引数
namethe name to set
81  {
82  this.name = name;
83  }
String name
Definition: Policy.java:48

◆ setScopes()

void org.mitre.uma.model.Policy.setScopes ( Set< String >  scopes)
inline
引数
scopesthe scopes to set
121  {
122  this.scopes = scopes;
123  }
Set< String > scopes
Definition: Policy.java:50

◆ toString()

String org.mitre.uma.model.Policy.toString ( )
inline
129  {
130  return "Policy [id=" + id + ", name=" + name + ", claimsRequired=" + claimsRequired + ", scopes=" + scopes + "]";
131  }
String name
Definition: Policy.java:48
Set< String > scopes
Definition: Policy.java:50
Collection< Claim > claimsRequired
Definition: Policy.java:49

メンバ詳解

◆ claimsRequired

Collection<Claim> org.mitre.uma.model.Policy.claimsRequired
private

◆ id

Long org.mitre.uma.model.Policy.id
private

◆ name

String org.mitre.uma.model.Policy.name
private

◆ scopes

Set<String> org.mitre.uma.model.Policy.scopes
private

このクラス詳解は次のファイルから抽出されました: