[jboss-cvs] JBossAS SVN: r83563 - projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 28 11:03:52 EST 2009
Author: darran.lofthouse at jboss.com
Date: 2009-01-28 11:03:52 -0500 (Wed, 28 Jan 2009)
New Revision: 83563
Removed:
projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMAuthenticator.java
projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMClient.java
Log:
[SECURITY-270] Remove NTLM authenticator from first release.
Deleted: projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMAuthenticator.java
===================================================================
--- projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMAuthenticator.java 2009-01-28 16:03:07 UTC (rev 83562)
+++ projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMAuthenticator.java 2009-01-28 16:03:52 UTC (rev 83563)
@@ -1,48 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- *
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.security.negotiation.ntlm;
-
-import org.jboss.security.negotiation.NegotiationAuthenticator;
-
-/**
- * The NTLMAuthenticator to be used when only NTLM is required.
- *
- * The authenticator sents the response header to 'WWW-Authenticate NTLM'
- * so reducing the negotiation options.
- *
- * @author darran.lofthouse at jboss.com
- * @since 10th August 2008
- * @version $Revision$
- */
-public class NTLMAuthenticator extends NegotiationAuthenticator
-{
-
- private static final String NTLM = "NTLM";
-
- @Override
- protected String getNegotiateScheme()
- {
- return NTLM;
- }
-
-}
Deleted: projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMClient.java
===================================================================
--- projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMClient.java 2009-01-28 16:03:07 UTC (rev 83562)
+++ projects/security/security-negotiation/branches/Branch_2_0/jboss-negotiation-ntlm/src/main/java/org/jboss/security/negotiation/ntlm/NTLMClient.java 2009-01-28 16:03:52 UTC (rev 83563)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.security.negotiation.ntlm;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.Authenticator;
-import java.net.PasswordAuthentication;
-import java.net.URL;
-
-/**
- * A simple client to test calling an NTLM enabled web application.
- *
- * Based on the example in: -
- * http://java.sun.com/javase/6/docs/technotes/guides/net/http-auth.html
- *
- * @author darran.lofthouse at jboss.com
- * @since 7th August 2008
- */
-public class NTLMClient
-{
- public static final String USERNAME = "darran";
-
- public static final String PASSWORD = "password";
-
- public static final String URL = "http://localhost:8080/jboss-negotiation-toolkit/BasicNegotiation";
-
- static class NTLMAuthenticator extends Authenticator
- {
-
- @Override
- protected URL getRequestingURL()
- {
- return super.getRequestingURL();
- }
-
- @Override
- protected RequestorType getRequestorType()
- {
- return super.getRequestorType();
- }
-
- @Override
- protected PasswordAuthentication getPasswordAuthentication()
- {
- return new PasswordAuthentication(USERNAME, PASSWORD.toCharArray());
- }
- }
-
- public static void main(String[] args) throws Exception
- {
- Authenticator.setDefault(new NTLMAuthenticator());
- URL url = new URL(NTLMClient.URL);
- InputStream ins = url.openConnection().getInputStream();
- BufferedReader reader = new BufferedReader(new InputStreamReader(ins));
- String str;
- while ((str = reader.readLine()) != null)
- {
- System.out.println(str);
- }
- }
-
-}
More information about the jboss-cvs-commits
mailing list