@@ -132,7 +132,7 @@ private String encodeToString(final byte[] outToken) {
132132 * @param subject authenticated subject
133133 * @return a byte[] containing the token to be sent to the peer. null indicates
134134 * that no token is generated.
135- * @throws PrivilegedActionException
135+ * @throws PrivilegedActionException when privileged action threw exception
136136 * @see GSSContext#acceptSecContext(byte[], int, int)
137137 */
138138 private static byte [] acceptSecContext (final byte [] base64decodedTicket , final GSSContext gssContext , Subject subject )
@@ -148,7 +148,7 @@ private static byte[] acceptSecContext(final byte[] base64decodedTicket, final G
148148 * @param gssManager {@link GSSManager}
149149 * @param subject logged in {@link Subject}
150150 * @return {@link GSSCredential} for particular mechanism
151- * @throws PrivilegedActionException
151+ * @throws PrivilegedActionException when privileged action threw exception
152152 */
153153 private static GSSCredential createCredentials (final GSSManager gssManager , final Subject subject ) throws PrivilegedActionException {
154154 return doAsWrapper (subject , (PrivilegedExceptionAction <GSSCredential >) () -> gssManager .createCredential (null ,
@@ -163,7 +163,7 @@ private static GSSCredential createCredentials(final GSSManager gssManager, fina
163163 * @param action {@link PrivilegedExceptionAction} action for performing inside
164164 * Subject.doAs
165165 * @return the value returned by the PrivilegedExceptionAction's run method
166- * @throws PrivilegedActionException
166+ * @throws PrivilegedActionException when privileged action threw exception
167167 */
168168 private static <T > T doAsWrapper (final Subject subject , final PrivilegedExceptionAction <T > action ) throws PrivilegedActionException {
169169 try {
0 commit comments