- 
    Bug 
- 
    Resolution: Done
- 
    Major 
- 
    None
- 
    None
- 
        False
- 
        
- 
        False
- 
        
- 
        
- 
        
- 
        
- 
        
- 
        ?
- 
        
- 
        
- 
        
When the webservice endpoint security is authenticated with a custom Realm and RealmIdentity which always returns null PasswordCredential like :
public class SampleRealmIdentity implements RealmIdentity { private final Principal principal; private final String password; private final Set<String> roles; public SampleRealmIdentity(Principal principal, String password, Set<String> roles) { this.principal = principal; this.password = password; this.roles = roles; } ... @Override public <C extends Credential> C getCredential(Class<C> credentialType) throws RealmUnavailableException { // do not return credentials return null; } @Override public boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException { if (evidence instanceof PasswordGuessEvidence) { PasswordGuessEvidence guess = (PasswordGuessEvidence) evidence; return Arrays.equals(password.toCharArray(), guess.getGuess()); } return false; } ... } @Override public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException { return AuthorizationIdentity.basicIdentity(getAttributes()); } }
The authentication is always failed as the SubjectCreator expects a null value PasswordCredential.
- clones
- 
                    JBWS-4438 Authentication always failed when the webservice security is configured with a custom realm -         
- Resolved
 
-         
- is cloned by
- 
                    JBEAP-28985 [GSS](8.0.z) JBWS-4438 - Authentication always failed when the webservice security is configured with a custom realm -         
- Verified
 
-         
- is incorporated by
- 
                    JBEAP-28905 (7.4.z) Upgrade jbossws-cxf from 5.4.14.Final-redhat-00001 to 5.4.15.Final-redhat-00001 -         
- Closed
 
-