Skip to content

Commit 913fe5c

Browse files
jdconraddanielmitterdorfer
authored andcommitted
Fix missing JavaDoc for @throws in several places in
KerberosTicketValidator.
1 parent 0489535 commit 913fe5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTicketValidator.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)