keycloak
公開メンバ関数 | 静的公開変数類 | 限定公開変数類 | 全メンバ一覧
org.keycloak.representations.docker.DockerAccess クラス
org.keycloak.representations.docker.DockerAccess 連携図
Collaboration graph

公開メンバ関数

 DockerAccess ()
 
 DockerAccess (final String scopeParam)
 
String getType ()
 
DockerAccess setType (final String type)
 
String getName ()
 
DockerAccess setName (final String name)
 
List< String > getActions ()
 
DockerAccess setActions (final List< String > actions)
 
boolean equals (final Object o)
 
int hashCode ()
 
String toString ()
 

静的公開変数類

static final int ACCESS_TYPE = 0
 
static final int REPOSITORY_NAME = 1
 
static final int PERMISSIONS = 2
 
static final String DECODE_ENCODING = "UTF-8"
 

限定公開変数類

String type
 
String name
 
List< String > actions
 

詳解

Per the docker auth v2 spec, access is defined like this:

   {
   "type": "repository",
   "name": "samalba/my-app",
   "actions": [
      "push",
      "pull"
    ]
   }

構築子と解体子

◆ DockerAccess() [1/2]

org.keycloak.representations.docker.DockerAccess.DockerAccess ( )
inline
38  {
39  }

◆ DockerAccess() [2/2]

org.keycloak.representations.docker.DockerAccess.DockerAccess ( final String  scopeParam)
inline
41  {
42  if (scopeParam != null) {
43  try {
44  final String unencoded = URLDecoder.decode(scopeParam, DECODE_ENCODING);
45  final String[] parts = unencoded.split(":");
46  if (parts.length != 3) {
47  throw new IllegalArgumentException(String.format("Expecting input string to have %d parts delineated by a ':' character. " +
48  "Found %d parts: %s", 3, parts.length, unencoded));
49  }
50 
51  type = parts[ACCESS_TYPE];
52  name = parts[REPOSITORY_NAME];
53  if (parts[PERMISSIONS] != null) {
54  actions = Arrays.asList(parts[PERMISSIONS].split(","));
55  }
56  } catch (final UnsupportedEncodingException e) {
57  throw new IllegalStateException("Error attempting to decode scope parameter using encoding: " + DECODE_ENCODING);
58  }
59  }
60  }
static final int REPOSITORY_NAME
Definition: DockerAccess.java:27
List< String > actions
Definition: DockerAccess.java:36
String type
Definition: DockerAccess.java:32
static final int PERMISSIONS
Definition: DockerAccess.java:28
static final int ACCESS_TYPE
Definition: DockerAccess.java:26
String name
Definition: DockerAccess.java:34
static final String DECODE_ENCODING
Definition: DockerAccess.java:29

関数詳解

◆ equals()

boolean org.keycloak.representations.docker.DockerAccess.equals ( final Object  o)
inline
90  {
91  if (this == o) return true;
92  if (!(o instanceof DockerAccess)) return false;
93 
94  final DockerAccess that = (DockerAccess) o;
95 
96  if (type != null ? !type.equals(that.type) : that.type != null) return false;
97  if (name != null ? !name.equals(that.name) : that.name != null) return false;
98  return actions != null ? actions.equals(that.actions) : that.actions == null;
99 
100  }
DockerAccess()
Definition: DockerAccess.java:38
List< String > actions
Definition: DockerAccess.java:36
String type
Definition: DockerAccess.java:32
String name
Definition: DockerAccess.java:34

◆ getActions()

List<String> org.keycloak.representations.docker.DockerAccess.getActions ( )
inline
80  {
81  return actions;
82  }
List< String > actions
Definition: DockerAccess.java:36

◆ getName()

String org.keycloak.representations.docker.DockerAccess.getName ( )
inline
71  {
72  return name;
73  }
String name
Definition: DockerAccess.java:34

◆ getType()

String org.keycloak.representations.docker.DockerAccess.getType ( )
inline
62  {
63  return type;
64  }
String type
Definition: DockerAccess.java:32

◆ hashCode()

int org.keycloak.representations.docker.DockerAccess.hashCode ( )
inline
103  {
104  int result = type != null ? type.hashCode() : 0;
105  result = 31 * result + (name != null ? name.hashCode() : 0);
106  result = 31 * result + (actions != null ? actions.hashCode() : 0);
107  return result;
108  }
List< String > actions
Definition: DockerAccess.java:36
String type
Definition: DockerAccess.java:32
String name
Definition: DockerAccess.java:34

◆ setActions()

DockerAccess org.keycloak.representations.docker.DockerAccess.setActions ( final List< String >  actions)
inline
84  {
85  this.actions = actions;
86  return this;
87  }
List< String > actions
Definition: DockerAccess.java:36

◆ setName()

DockerAccess org.keycloak.representations.docker.DockerAccess.setName ( final String  name)
inline
75  {
76  this.name = name;
77  return this;
78  }
String name
Definition: DockerAccess.java:34

◆ setType()

DockerAccess org.keycloak.representations.docker.DockerAccess.setType ( final String  type)
inline
66  {
67  this.type = type;
68  return this;
69  }
String type
Definition: DockerAccess.java:32

◆ toString()

String org.keycloak.representations.docker.DockerAccess.toString ( )
inline
111  {
112  return "DockerAccess{" +
113  "type='" + type + '\'' +
114  ", name='" + name + '\'' +
115  ", actions=" + actions +
116  '}';
117  }
List< String > actions
Definition: DockerAccess.java:36
String type
Definition: DockerAccess.java:32
String name
Definition: DockerAccess.java:34

メンバ詳解

◆ ACCESS_TYPE

final int org.keycloak.representations.docker.DockerAccess.ACCESS_TYPE = 0
static

◆ actions

List<String> org.keycloak.representations.docker.DockerAccess.actions
protected

◆ DECODE_ENCODING

final String org.keycloak.representations.docker.DockerAccess.DECODE_ENCODING = "UTF-8"
static

◆ name

String org.keycloak.representations.docker.DockerAccess.name
protected

◆ PERMISSIONS

final int org.keycloak.representations.docker.DockerAccess.PERMISSIONS = 2
static

◆ REPOSITORY_NAME

final int org.keycloak.representations.docker.DockerAccess.REPOSITORY_NAME = 1
static

◆ type

String org.keycloak.representations.docker.DockerAccess.type
protected

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