Daniel Stieglitz created NIFI-14202:
---------------------------------------

             Summary: Replace  javax.security.auth.Subject doAs and getSubject 
methods with suggested equivalents
                 Key: NIFI-14202
                 URL: https://issues.apache.org/jira/browse/NIFI-14202
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz
            Assignee: Daniel Stieglitz


The  warnings below are produced when building indicating  
javax.security.auth.Subject doAs and getSubject methods are deprecated. These 
methods should be replaced with the suggested replacements. Using the suggested 
replacements will also allow for not having to use AccessControlContext and 
AccessControlContext which are also deprecated.
{code:java}
[WARNING] 
nifi-2.2.0/nifi-commons/nifi-security-kerberos/src/main/java/org/apache/nifi/security/krb/AbstractKerb
erosUser.java:[167,22] [removal] <T>doAs(Subject,PrivilegedAction<T>) in 
Subject has been deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-commons/nifi-security-kerberos/src/main/java/org/apache/nifi/security/krb/AbstractKerb
erosUser.java:[186,22] [removal] <T>doAs(Subject,PrivilegedExceptionAction<T>) 
in Subject has been deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-commons/nifi-security-kerberos/src/test/java/org/apache/nifi/security/krb/KerberosUser
IT.java:[173,12] [removal] AccessControlContext in java.security has been 
deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-commons/nifi-security-kerberos/src/test/java/org/apache/nifi/security/krb/KerberosUser
IT.java:[173,43] [removal] AccessController in java.security has been 
deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-extension-bundles/nifi-extension-utils/nifi-hadoop-utils/src/main/java/org/apache/nifi
/hadoop/SecurityUtil.java:[93,16] [removal] AccessControlContext in 
java.security has been deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-extension-bundles/nifi-extension-utils/nifi-hadoop-utils/src/main/java/org/apache/nifi
/hadoop/SecurityUtil.java:[93,47] [removal] AccessController in java.security 
has been deprecated and marked for removal
[WARNING] 
nifi-2.2.0/nifi-extension-bundles/nifi-extension-utils/nifi-hadoop-utils/src/main/java/org/apache/nifi
/hadoop/SecurityUtil.java:[94,41] [removal] getSubject(AccessControlContext) in 
Subject has been deprecated and marked for removal {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to