jdk/src/java.security.sasl/share/classes/com/sun/security/sasl/Provider.java
changeset 40416 5d91b2fd668c
parent 33991 619bfc4d582d
equal deleted inserted replaced
40415:256109602af0 40416:5d91b2fd668c
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    27 import java.security.AccessController;
    27 import java.security.AccessController;
    28 import java.security.PrivilegedAction;
    28 import java.security.PrivilegedAction;
    29 import java.security.NoSuchAlgorithmException;
    29 import java.security.NoSuchAlgorithmException;
    30 import java.security.InvalidParameterException;
    30 import java.security.InvalidParameterException;
    31 import java.security.ProviderException;
    31 import java.security.ProviderException;
       
    32 import static sun.security.util.SecurityConstants.PROVIDER_VER;
    32 
    33 
    33 /**
    34 /**
    34  * The SASL provider.
    35  * The SASL provider.
    35  * Provides client support for
    36  * Provides client support for
    36  * - EXTERNAL
    37  * - EXTERNAL
    96                 " " + type);
    97                 " " + type);
    97         }
    98         }
    98     }
    99     }
    99 
   100 
   100     public Provider() {
   101     public Provider() {
   101         super("SunSASL", 9.0d, info);
   102         super("SunSASL", PROVIDER_VER, info);
   102 
   103 
   103         final Provider p = this;
   104         final Provider p = this;
   104         AccessController.doPrivileged(new PrivilegedAction<Void>() {
   105         AccessController.doPrivileged(new PrivilegedAction<Void>() {
   105             public Void run() {
   106             public Void run() {
   106                 // Client mechanisms
   107                 // Client mechanisms