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

Commit bc75fcd

Browse files
committed
Removed unused imports and fixed tiny formatting issue
1 parent cd91894 commit bc75fcd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/javax/security/enterprise/SecurityContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import javax.ejb.SessionContext;
4646
import javax.security.enterprise.authentication.mechanism.http.AuthenticationParameters;
4747
import javax.security.enterprise.authentication.mechanism.http.HttpAuthenticationMechanism;
48-
import javax.security.enterprise.identitystore.IdentityStore;
4948
import javax.security.jacc.WebResourcePermission;
5049
import javax.servlet.http.HttpServletRequest;
5150
import javax.servlet.http.HttpServletResponse;

src/main/java/javax/security/enterprise/identitystore/IdentityStore.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.Set;
5151

5252
import javax.security.auth.message.module.ServerAuthModule;
53-
import javax.security.enterprise.CallerPrincipal;
5453
import javax.security.enterprise.authentication.mechanism.http.HttpAuthenticationMechanism;
5554
import javax.security.enterprise.credential.Credential;
5655

@@ -97,19 +96,19 @@ public CredentialValidationResult validate(UsernamePasswordCredential usernamePa
9796
*/
9897
default CredentialValidationResult validate(Credential credential) {
9998
try {
100-
return CredentialValidationResult.class.cast(
99+
return CredentialValidationResult.class.cast(
101100
MethodHandles.lookup()
102101
.bind(this, "validate", methodType(CredentialValidationResult.class, credential.getClass()))
103102
.invoke(credential));
104103
} catch (NoSuchMethodException e) {
105-
return NOT_VALIDATED_RESULT;
104+
return NOT_VALIDATED_RESULT;
106105
} catch (Throwable e) {
107106
throw new IllegalStateException(e);
108107
}
109108
}
110109

111110
default Set<String> getCallerGroups(CredentialValidationResult validationResult) {
112-
return emptySet();
111+
return emptySet();
113112
}
114113

115114
/**

0 commit comments

Comments
 (0)