Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Commit e933ef3

Browse files
committed
Fix indentation.
1 parent 047613e commit e933ef3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/main/java/javax/security/identitystore/CredentialValidationResult.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public CredentialValidationResult(String callerName, Set<String> groups) {
132132
public CredentialValidationResult(CallerPrincipal callerPrincipal, Set<String> groups) {
133133
this(null, callerPrincipal, null, groups);
134134
}
135-
135+
136136
/**
137137
* Constructor for a VALID result.
138138
*
@@ -142,9 +142,9 @@ public CredentialValidationResult(CallerPrincipal callerPrincipal, Set<String> g
142142
* @param groups Groups associated with the caller from the identity store
143143
*/
144144
public CredentialValidationResult(String storeId, String callerName, String callerUniqueId, Set<String> groups) {
145-
this(storeId, new CallerPrincipal(callerName), callerUniqueId, groups);
145+
this(storeId, new CallerPrincipal(callerName), callerUniqueId, groups);
146146
}
147-
147+
148148
/**
149149
* Constructor for a VALID result.
150150
*
@@ -154,9 +154,9 @@ public CredentialValidationResult(String storeId, String callerName, String call
154154
* @param groups Groups associated with the caller from the identity store
155155
*/
156156
public CredentialValidationResult(String storeId, CallerPrincipal callerPrincipal, String callerUniqueId, Set<String> groups) {
157-
this(VALID, storeId, callerPrincipal, callerUniqueId, groups);
157+
this(VALID, storeId, callerPrincipal, callerUniqueId, groups);
158158
}
159-
159+
160160
/**
161161
* Private constructor.
162162
*
@@ -167,20 +167,20 @@ public CredentialValidationResult(String storeId, CallerPrincipal callerPrincipa
167167
* @param groups Groups associated with the caller from the identity store
168168
*/
169169
private CredentialValidationResult(Status status, String storeId,
170-
CallerPrincipal callerPrincipal, String callerUniqueId, Set<String> groups) {
171-
170+
CallerPrincipal callerPrincipal, String callerUniqueId, Set<String> groups) {
171+
172172
if (status != VALID && (storeId != null || callerPrincipal != null || callerUniqueId != null || groups != null)) {
173173
throw new IllegalArgumentException("Bad status");
174174
}
175-
if (status == VALID && (callerPrincipal == null || callerPrincipal.getName().trim().isEmpty())) {
176-
throw new IllegalArgumentException("Null or empty CallerPrincipal");
177-
}
178-
179-
this.status = VALID;
180-
this.storeId = storeId;
181-
this.callerPrincipal = callerPrincipal;
182-
this.callerUniqueId = callerUniqueId;
183-
this.groups = groups != null ? unmodifiableSet(new HashSet<String>(groups)) : emptySet();
175+
if (status == VALID && (callerPrincipal == null || callerPrincipal.getName().trim().isEmpty())) {
176+
throw new IllegalArgumentException("Null or empty CallerPrincipal");
177+
}
178+
179+
this.status = VALID;
180+
this.storeId = storeId;
181+
this.callerPrincipal = callerPrincipal;
182+
this.callerUniqueId = callerUniqueId;
183+
this.groups = groups != null ? unmodifiableSet(new HashSet<String>(groups)) : emptySet();
184184
}
185185

186186
/**
@@ -191,14 +191,14 @@ private CredentialValidationResult(Status status, String storeId,
191191
public Status getStatus() {
192192
return status;
193193
}
194-
194+
195195
/**
196196
* Return the unique ID of the identity store used to validate the credentials.
197197
*
198198
* @return String identifying the external store used to validate credentials.
199199
*/
200200
public String getIdentityStoreId() {
201-
return storeId;
201+
return storeId;
202202
}
203203

204204
/**
@@ -209,15 +209,15 @@ public String getIdentityStoreId() {
209209
public CallerPrincipal getCallerPrincipal() {
210210
return callerPrincipal;
211211
}
212-
212+
213213
/**
214214
* Return a string that uniquely identifies this caller within the identity store
215215
* (since the Principal name used may not be unique).
216216
*
217217
* @return Caller's unique identifier.
218218
*/
219219
public String getCallerUniqueId() {
220-
return callerUniqueId;
220+
return callerUniqueId;
221221
}
222222

223223
/**

0 commit comments

Comments
 (0)