equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2014, 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 |
588 return engineIsKeyEntry(alias) && |
588 return engineIsKeyEntry(alias) && |
589 engineGetCertificate(alias) == null; |
589 engineGetCertificate(alias) == null; |
590 } |
590 } |
591 return false; |
591 return false; |
592 } |
592 } |
|
593 |
|
594 /** |
|
595 * Probes the specified input stream to determine whether it contains a |
|
596 * keystore that is supported by this implementation, or not. |
|
597 * |
|
598 * <p> |
|
599 * @implSpec |
|
600 * This method returns false by default. Keystore implementations should |
|
601 * override this method to peek at the data stream directly or to use other |
|
602 * content detection mechanisms. |
|
603 * |
|
604 * @param stream the keystore data to be probed |
|
605 * |
|
606 * @return true if the keystore data is supported, otherwise false |
|
607 * |
|
608 * @throws IOException if there is an I/O problem with the keystore data. |
|
609 * @throws NullPointerException if stream is {@code null}. |
|
610 * |
|
611 * @since 1.9 |
|
612 */ |
|
613 public boolean engineProbe(InputStream stream) throws IOException { |
|
614 return false; |
|
615 } |
593 } |
616 } |