Creates a new instance of WSITClientAuthModule supported[0] = SOAPMessage.class; supported[1] = Message.class;
supported[0] = SOAPMessage.class; supported[1] = Message.class;
if (subject == null) { // log log.log(Level.SEVERE, LogStringsMessages.WSITPVD_0037_NULL_SUBJECT()); throw new AuthException(LogStringsMessages.WSITPVD_0037_NULL_SUBJECT()); } if (!subject.isReadOnly()) { // log //subject = new Subject(); return; } Set principals = subject.getPrincipals(); Set privateCredentials = subject.getPrivateCredentials(); Set publicCredentials = subject.getPublicCredentials(); try { principals.clear(); } catch (UnsupportedOperationException uoe) { // log } Iterator pi = privateCredentials.iterator(); while (pi.hasNext()) { try { Destroyable dstroyable = (Destroyable)pi.next(); dstroyable.destroy(); } catch (DestroyFailedException dfe) { // log } catch (ClassCastException cce) { // log } } Iterator qi = publicCredentials.iterator(); while (qi.hasNext()) { try { Destroyable dstroyable = (Destroyable)qi.next(); dstroyable.destroy(); } catch (DestroyFailedException dfe) { // log } catch (ClassCastException cce) { // log } }
return supported;
String bg = (String)options.get(DEBUG); if (bg !=null && bg.equals("true")) debug = true;
return AuthStatus.SUCCESS;