01: /*
02: * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.monitoring.security.sasl;
06:
07: import javax.security.auth.callback.CallbackHandler;
08: import javax.security.sasl.*;
09: import java.util.Map;
10:
11: public class ServerFactory implements SaslServerFactory {
12: public SaslServer createSaslServer(String mechanism,
13: String protocol, String serverName, Map props,
14: CallbackHandler cbh) throws SaslException {
15: return new PlainServer(cbh);
16: }
17:
18: public String[] getMechanismNames(Map props) {
19: return new String[] { SaslContext.MECHANISM_NAME };
20: }
21: }
|